aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-07-21 20:10:22 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-07-21 20:12:01 +0000
commitb77a5e5f5835620ce27114fad9a211d960ed60aa (patch)
tree92b7bff78a1938d86db1b6c8ca4935a19c3245e9
parentdf5d2841d507589af0de7301f6cee3d2b98a35be (diff)
downloadsrc-b77a5e5f5835620ce27114fad9a211d960ed60aa.tar.gz
src-b77a5e5f5835620ce27114fad9a211d960ed60aa.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
-rw-r--r--sys/dev/vt/vt_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c
index 588ebbcbc4e9..b95ff1ef677e 100644
--- a/sys/dev/vt/vt_core.c
+++ b/sys/dev/vt/vt_core.c
@@ -2126,7 +2126,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;