From nobody Sun Jul 24 22:40:37 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 4LrdRp1MC8z3ysCx; Sun, 24 Jul 2022 22:40:38 +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 4LrdRp0hN5z3vMf; Sun, 24 Jul 2022 22:40:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658702438; 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=gNeLGwqKVxeOhDCf3ysJK47SCKnLx7zU41ZWUbPDsAM=; b=Y4Mrbf7U0dq7euh0khsuVin2+bZObzo0bPgwKa9FlRFnXM+90cEPujDGhcPF3VEOyNL74s dh9fK+Bi8coI62cksGvKDbU8vlKaLWVwiondZu/M8/qfozo1EAo/avNGppYOq5I4tX5N2S 5KlM+bUuQKepcMtpTNLSoTP2RW/YYlXV7xlKGXfDmHPyBeP/1VKZfutp7G1H2lH6njGIT6 nluWg52YBmQSFBwA0pkMFSHaHm46mHqNr0lvh1E9sW5pE2IyGyW7TENmMkgGlEjMjHjLsZ L/unu7maE1OZWd4NGbfKIxFK0vA0h5Dw1jK4GFOMJxCGwAFDrmtrnlNwXpNvkA== 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 4LrdRn6qT8zZw3; Sun, 24 Jul 2022 22:40:37 +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 26OMeboe085509; Sun, 24 Jul 2022 22:40:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OMebbg085508; Sun, 24 Jul 2022 22:40:37 GMT (envelope-from git) Date: Sun, 24 Jul 2022 22:40:37 GMT Message-Id: <202207242240.26OMebbg085508@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: e87d90a9dce2 - main - 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/main X-Git-Reftype: branch X-Git-Commit: e87d90a9dce22003d79ae895bac5ce2d0ca029fe Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658702438; 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=gNeLGwqKVxeOhDCf3ysJK47SCKnLx7zU41ZWUbPDsAM=; b=OTFPCAIlPEQAT8msgTqXatyZ4WrvBzzvU+gqWfDzwLiF7EQekG/XO8Wv4LUsx5DMWawbyd OFCsFOrWgG1qC5pD2UhihfW83btnEgBCcL51E8FD7+Oisxw+JEAOzQgVbzLiSGy86Xhw4Y nb/fp9GxbBvTa6qNGP+NYQz15f5SB1hMYumTILfKfuHv69N4U0x7U5m03zMmmb0jO4z44k xtjTG5K+VUMnvEs55yurLMNSmU3JmegYrPAeA87j+kgjsgPIoRbb+t8QrW7jwRF1/vIKa6 qUKNgynjEK27kcg/oeN6MJkoDBwpczNKlQEa/8ZUATGxO7cQxYrQRqNgNXVU8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658702438; a=rsa-sha256; cv=none; b=K1tvXqOmjc3pqhRVQbKn7XJT2T/vK9v1aeOcAqy5RwznjbYV4WxVcVw2DhFlb39CiKP1/e qxLP1TzfUsM3wr0OQJyztmWICVh/DaBv9ya78WGqHC82dPYPyR6p7jiwaC4ulW7aNadhBK MvUN1sP39mfb9SoQSI0jZg18Len3DoM+4hCd98cArUZGZemoYiIIC5InFqLMxDuyDDYYTG 24xwpJN+Z3oSYhmgEBfwL0fOrpcJj0aM/KiB1OAZtaNrKDp3spMCtYzvDLJwS1fGZbMzXF BBpr8NIVr8VrwvmVUSCzzT1VS4IPpATGzd5r6QZAEQqXgPgSua44Y8Tjp1dQRA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=e87d90a9dce22003d79ae895bac5ce2d0ca029fe commit e87d90a9dce22003d79ae895bac5ce2d0ca029fe Author: Dimitry Andric AuthorDate: 2022-07-24 21:28:43 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 22:40:12 +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 --- 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;