From nobody Wed Jul 27 19:18:08 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LtNpn0vf4z4XS7V; Wed, 27 Jul 2022 19:18:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LtNpn035Hz3GZQ; Wed, 27 Jul 2022 19:18:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949489; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V+eiHvvStcRLi9BlLWoU9s4cs9W8ZMl/GstHcFri+Cs=; b=jlU00pH0xR/dJy4qJYZ1ut5aO+5GJbAN3Alsf/f1imXtKilZr/cFDxoI/Z4cyhO58slGu/ 3A2sd7U3r5Wjd8hZ5gTqsoR2d3aSFrUTu5bXGRS4CPobRO2JOaaPpW3bSluMnOlfNLsDuP gaELR0qMynFk5vRoAWPeLS2pbXkIAr1Ykwn9eUBEWWCt0qOX3kkC48ZxEtk8gVXlQCV2zU 9XTvy6m5mQrgi1FCCAsf1Mpgpx9LIyW8dredH/1EWeuss44aAjk1ptWCuk5TFzjx7EwNr+ LnKMqyMlp4QPk2UKWW0AIqgtx0z7e0IR9GoJCiaB8daBFx7Jy4u8B/+Hc19J2w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LtNpm662czSN6; Wed, 27 Jul 2022 19:18:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26RJI8Gh058806; Wed, 27 Jul 2022 19:18:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26RJI822058805; Wed, 27 Jul 2022 19:18:08 GMT (envelope-from git) Date: Wed, 27 Jul 2022 19:18:08 GMT Message-Id: <202207271918.26RJI822058805@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 4c941909462b - stable/13 - Adjust local_rpcb() definition to avoid clang 15 warning List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 4c941909462bf9b7b2b3a14a2d22072eebc08de2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949489; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V+eiHvvStcRLi9BlLWoU9s4cs9W8ZMl/GstHcFri+Cs=; b=UMA4lL5KciXXbDtsrXxCszFuon49iR8IjAz5yTe9aR+tFheWOmfH+manuK8Sq6iuZJbxFF U9sweRgHWa7oiGi4fz3XJ2giuBSs5Je8wuCjlhRjzJ/lDTwE1z5wPWbjnrRvpF2y2a3plv a5WFf+Ekvs4FeK8Q+IvYFYN/he0QQQP9rRXSD7tuIurrZViSOKTGn2colKeI9cPD6eTUTl Twxrx2qU+YNIV9CBK+FiUoiav5ge9zJpwc8jrtz5zuGEYd16WlKYXpyvrvfSED0PT+D5iQ M8Dh5YbiVPztUJ9CKhsPXCzZGQFRoelWzCOH02JbU5zEkNirq+59CAnETBEUCw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658949489; a=rsa-sha256; cv=none; b=sIbb+37yhO39WtiykY1LWB/3G9CQsQeD3F/MolmynluWwmCrO4/CNAs5pHiibcAN8jHP/a 59jNTp8sIVpCGfgYVjlM3qqWZ8faQ00WG11X12x1iFB7J1xYqJdfst99a4FpFFXklmFx++ Dq91JmF1C9ufTN5l+NSUcJGNhEROI7DhCpTVrPo6ulSNOvYTPDrW3pW0FfVwdFa0ChZ1qi Kdd8QI6wUqFRoH8LLWZYo2/LXcKdRa4EU6nm33jkQOe81/IAlMFHTK00s0kDEcRmXDGXWr ezTaY403wMARuuoJZ1iNhZNkIO+jbIHmSkIUcIPS1Mx2pywCDkn2hfuQZbhvXg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=4c941909462bf9b7b2b3a14a2d22072eebc08de2 commit 4c941909462bf9b7b2b3a14a2d22072eebc08de2 Author: Dimitry Andric AuthorDate: 2022-07-24 21:28:43 +0000 Commit: Dimitry Andric 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;