The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=50207b2de9a53491c2b5ee9b96689333f5c46de5
commit 50207b2de9a53491c2b5ee9b96689333f5c46de5 Author: Dimitry Andric <[email protected]> AuthorDate: 2022-07-26 19:10:58 +0000 Commit: Dimitry Andric <[email protected]> CommitDate: 2022-07-26 19:25:09 +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 --- 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 efd504c37799..7144743bbf27 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -244,7 +244,7 @@ nd6_init(void) #ifdef VIMAGE void -nd6_destroy() +nd6_destroy(void) { callout_drain(&V_nd6_slowtimo_ch);
