Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jul 2022 19:25:23 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 50207b2de9a5 - main - Adjust function definition in nd6.c to avoid clang 15 warnings
Message-ID:  <202207261925.26QJPNch019684@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=50207b2de9a53491c2b5ee9b96689333f5c46de5

commit 50207b2de9a53491c2b5ee9b96689333f5c46de5
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-26 19:10:58 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207261925.26QJPNch019684>