Date: Sun, 24 Jul 2022 11:01:40 GMT From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 56b06ff9f538 - stable/13 - Adjust vt_mouse_paste() definition to avoid clang 15 warning Message-ID: <202207241101.26OB1eJr040594@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=56b06ff9f538265cb3415c8e2b0d54b16a6e32fe commit 56b06ff9f538265cb3415c8e2b0d54b16a6e32fe Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-07-21 20:10:22 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-07-24 11:00:06 +0000 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) --- sys/dev/vt/vt_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index 27cbe5ad8294..85ab3d4cd73e 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207241101.26OB1eJr040594>