From 87d18efef7e3df5f4475cfe1a8f6d6782b7c1527 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 24 Jul 2022 23:38:46 +0200 Subject: [PATCH] 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 --- 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 43d14c702d4..b8b22fb7f4c 100644 --- a/sys/rpc/svc_vc.c +++ b/sys/rpc/svc_vc.c @@ -1075,7 +1075,7 @@ svc_vc_backchannel_reply(SVCXPRT *xprt, struct rpc_msg *msg, } static bool_t -svc_vc_null() +svc_vc_null(void) { return (FALSE);