git: d64f3e2728cf - stable/12 - Adjust authnone_create() definition to avoid clang 15 warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Jul 2022 19:21:28 UTC
The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=d64f3e2728cf22a623679c07de3f2380ff72cd86 commit d64f3e2728cf22a623679c07de3f2380ff72cd86 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:21:14 +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 236b4aa166ae..e59930451694 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;