Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jul 2022 19:18:04 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: 6bc04efce3b2 - stable/13 - Adjust authnone_create() definition to avoid clang 15 warning
Message-ID:  <202207271918.26RJI4th058707@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=6bc04efce3b2054d0605266940b2a029f78d54c5

commit 6bc04efce3b2054d0605266940b2a029f78d54c5
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-24 21:40:20 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-27 19:16:23 +0000

    Adjust authnone_create() definition to avoid clang 15 warning
    
    With clang 15, the following -Werror warning is produced:
    
        sys/rpc/auth_none.c:106:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        authnone_create()
                       ^
                        void
    
    This is because authnone_create() 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 90529847cf079d3b7250ae3d3ecd79e843df7973)
---
 sys/rpc/auth_none.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/rpc/auth_none.c b/sys/rpc/auth_none.c
index 91597114c069..87614a6b3880 100644
--- a/sys/rpc/auth_none.c
+++ b/sys/rpc/auth_none.c
@@ -103,7 +103,7 @@ authnone_init(void *dummy)
 SYSINIT(authnone_init, SI_SUB_KMEM, SI_ORDER_ANY, authnone_init, NULL);
 
 AUTH *
-authnone_create()
+authnone_create(void)
 {
 	struct authnone_private *ap = &authnone_private;
 



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