Date: Fri, 29 Jul 2022 18:47:23 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: bba7dc26f765 - stable/13 - Adjust function definition in nd6.c to avoid clang 15 warnings Message-ID: <202207291847.26TIlN4X024039@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=bba7dc26f765109b8b1030e45a017d87d560f63f commit bba7dc26f765109b8b1030e45a017d87d560f63f 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:29:08 +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 69da61aa9c5c..e1951ac50683 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -245,7 +245,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?202207291847.26TIlN4X024039>