From nobody Wed Jul 27 19:21:31 2022 X-Original-To: dev-commits-src-branches@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 4LtNtg6p76z4XSj6; Wed, 27 Jul 2022 19:21:31 +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 4LtNtg67fMz3KqM; Wed, 27 Jul 2022 19:21:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949691; 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=SLwX6Q9eY+MN0eHcb5n2QatJXOrXmXBLwF8CHBoemeA=; b=NlMQ4t1u6u6EZrh4eg9yLv3hlhQvN+QwdnhXzfAt0LWQUkKjKpdzVph6rQtjyV2s1rfjVr 9VDkdThfwsGCmcgcvgxoYtQOsHYYMukLxG8EC4vKtBauL4kogE06Jf0Apheazgl823aaIe 1moHOCifUeVdw3xoJN8ytSAUBUwAlIYgO1G2lgp7epIQKUgBzlcxJSeRD0XzxDExSuLbro xpEkhh/FyDJM/4h0Mfo23AsAVhYjwIT0NSDPmWY45bYdid2KqNUp1RYRMutDqjkHDJ5EWi SNHZxeya921bdScQHsNnY54xANfkR6uV2OggT57637cN9g2y2chLHW+Urz0rzg== 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 4LtNtg5D89zSmF; Wed, 27 Jul 2022 19:21:31 +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 26RJLVDL071760; Wed, 27 Jul 2022 19:21:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26RJLVqG071759; Wed, 27 Jul 2022 19:21:31 GMT (envelope-from git) Date: Wed, 27 Jul 2022 19:21:31 GMT Message-Id: <202207271921.26RJLVqG071759@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: 11ac8a326d5f - stable/12 - Adjust local_rpcb() definition to avoid clang 15 warning List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/12 X-Git-Reftype: branch X-Git-Commit: 11ac8a326d5f967e8f85e89984c00359f61f540c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949691; 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=SLwX6Q9eY+MN0eHcb5n2QatJXOrXmXBLwF8CHBoemeA=; b=dptrmucNC0o2Z+cPUkV1cHIJT1tJXoqI9aknQaJj8jOa+phDlA4AjSxOFIVo5piK/zCJNh MSUcVt5g7z07riwyCV3nV5XPncQdLeOYy8GDLMzAFnWfb7/AECnAeEpH+/qTOjrADcOhiZ cYYPHgyRp2ad7A3ymCBH93zEoisIkVVtHD7O3oyFwisQ6y+JDhat/wqGxKI+OKNMyFpoYS 6IFwPKOLAenC8vyS38cd7N0jPOePjM2bNZCsF6eKK0iyGNv3giiTBi2jgqsm2shNyrsdN6 C1olOZ5lz/N1IlP0e3bHUV8kqHi//nmbwSaHXcK1ZjfXaNzrYQGpwAsS+4/kkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658949691; a=rsa-sha256; cv=none; b=yhAthwMmrTd/1JKDOjvvgnkzMDE6e/IlIeRdgdpzysBRQh55Pr+gHBeV4yB6fhcx64hE2k PkSs02Vy2FchbjhPjNA+ioFTKB1xqLDp7hj2Onhr8hgmx0JfA6aTAlREIryyYSqUpBfWC0 sZsBzxCA5dEGQhLnOkA37/xeUTMGmdfPYtMELE17vuVKeYkciMrKQg4jiA6Z5Q37tLmxrG C6agHcHLDb4Xd08sOf23AFyh1Jn67xigjqDF187zLPYzjKYmPxbQUvAZd8BWYo12iAfSQn X+KQmmWSTo1z2H0xmnjhgY0Q9ggADG5EjriWOxrhh+sT58txh+ylGmUoyldmOA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=11ac8a326d5f967e8f85e89984c00359f61f540c commit 11ac8a326d5f967e8f85e89984c00359f61f540c Author: Dimitry Andric AuthorDate: 2022-07-24 21:28:43 +0000 Commit: Dimitry Andric CommitDate: 2022-07-27 19:21:14 +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;