Date: Wed, 27 Jul 2022 19:18:08 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: 4c941909462b - stable/13 - Adjust local_rpcb() definition to avoid clang 15 warning Message-ID: <202207271918.26RJI822058805@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=4c941909462bf9b7b2b3a14a2d22072eebc08de2 commit 4c941909462bf9b7b2b3a14a2d22072eebc08de2 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-07-24 21:28:43 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-07-27 19:17:23 +0000 Adjust local_rpcb() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/rpc/rpcb_clnt.c:439:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] local_rpcb() ^ void This is because local_rpcb() 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 e87d90a9dce22003d79ae895bac5ce2d0ca029fe) --- sys/rpc/rpcb_clnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/rpc/rpcb_clnt.c b/sys/rpc/rpcb_clnt.c index 8a95999baaf4..b81ab66c9409 100644 --- a/sys/rpc/rpcb_clnt.c +++ b/sys/rpc/rpcb_clnt.c @@ -436,7 +436,7 @@ getclnthandle(host, nconf, targaddr) * rpcbind. Returns NULL on error and free's everything. */ static CLIENT * -local_rpcb() +local_rpcb(void) { CLIENT *client; struct socket *so;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207271918.26RJI822058805>