diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-07-21 20:10:22 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2022-07-24 11:01:18 +0000 |
commit | 21f6b321eb7309d32dfc8afd4eac21e00da7e1c7 (patch) | |
tree | dacb185a0e5e99fe3360c1a73574a2908d092b0c | |
parent | 0f55ecc86ee5e7609a8208ef6cd09147450e0d9c (diff) | |
download | src-21f6b321eb7309d32dfc8afd4eac21e00da7e1c7.tar.gz src-21f6b321eb7309d32dfc8afd4eac21e00da7e1c7.zip |
Adjust vt_mouse_paste() definition to avoid clang 15 warning
With clang 15, the following -Werror warning is produced:
sys/dev/vt/vt_core.c:2129:15: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
vt_mouse_paste()
^
void
This is because vt_mouse_paste() is declared with a (void) argument
list, but defined with an empty argument list. Make the definition match
the declaration.
MFC after: 3 days
(cherry picked from commit b77a5e5f5835620ce27114fad9a211d960ed60aa)
-rw-r--r-- | sys/dev/vt/vt_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index d4cbb038d31a..8580a8c1d31b 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -1910,7 +1910,7 @@ vt_mouse_terminput(struct vt_device *vd, int type, int x, int y, int event, } static void -vt_mouse_paste() +vt_mouse_paste(void) { term_char_t *buf; int i, len; |