Date: Fri, 29 Jul 2022 18:48:30 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: 3e1adb29f771 - stable/12 - Adjust function definition in nd6.c to avoid clang 15 warnings Message-ID: <202207291848.26TImUc8025477@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=3e1adb29f77112744913b59ed0d029dcdd8c92ae commit 3e1adb29f77112744913b59ed0d029dcdd8c92ae Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-07-26 19:10:58 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-07-29 18:36:11 +0000 Adjust function definition in nd6.c to avoid clang 15 warnings With clang 15, the following -Werror warning is produced: sys/netinet6/nd6.c:247:12: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] nd6_destroy() ^ void This is nd6_destroy() 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 50207b2de9a53491c2b5ee9b96689333f5c46de5) --- sys/netinet6/nd6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 682a635ce5c2..fb308b79885a 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -241,7 +241,7 @@ nd6_init(void) #ifdef VIMAGE void -nd6_destroy() +nd6_destroy(void) { callout_drain(&V_nd6_slowtimo_ch);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207291848.26TImUc8025477>