git: afe85e781b4f - stable/12 - Adjust svc_vc_null() definition to avoid clang 15 warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Jul 2022 19:21:24 UTC
The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=afe85e781b4f891eabe8c49f67c60f1d5bd148f6 commit afe85e781b4f891eabe8c49f67c60f1d5bd148f6 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-07-24 21:38:46 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-07-27 19:21:13 +0000 Adjust svc_vc_null() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/rpc/svc_vc.c:1078:12: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] svc_vc_null() ^ void This is because svc_vc_null() 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 87d18efef7e3df5f4475cfe1a8f6d6782b7c1527) --- sys/rpc/svc_vc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/rpc/svc_vc.c b/sys/rpc/svc_vc.c index f1546615d2df..c2e94fe539b4 100644 --- a/sys/rpc/svc_vc.c +++ b/sys/rpc/svc_vc.c @@ -948,7 +948,7 @@ svc_vc_backchannel_reply(SVCXPRT *xprt, struct rpc_msg *msg, } static bool_t -svc_vc_null() +svc_vc_null(void) { return (FALSE);