From nobody Sun Jul 24 22:40:39 2022 X-Original-To: dev-commits-src-main@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 4LrdRq37zCz3ysB2; Sun, 24 Jul 2022 22:40:39 +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 4LrdRq2PSDz3vmR; Sun, 24 Jul 2022 22:40:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658702439; 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=4oeuYuJPxAuo3s0naf0X4HrUZ+lisjh4VtgxIfjXHzU=; b=oXy+zEfl1JNV3/I0ptUB0Epku6PAZa5UTycqruQ9JDsZvHg/DxHOPN0QCm3JFicEcnm8Wc XtuyypBs8nZAW6S/skv50/jjPryie4/m64e7L94Z4Ue60dxrxxELdJrSSzPmPMum6nu8Zt vqq0mSOdoVsjfvvyWfoWpzOfdKSG1FFeV3syk6xj/BKcV2azhslDj3eZQabcPfbuNjF+1G cy6KqCEageYX1XzA3Jn0YlqYyS5bnAo7+dMkdR+QPrP4qonvt2kUGoHbSgAsA1fapGQQ1v S6kBR9xVyaLwUtkwfcUnDY0/9bvOtEWWIABieCpZXsXTM0wI738JfUygHO0l8Q== 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 4LrdRq1GBSzbMr; Sun, 24 Jul 2022 22:40:39 +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 26OMed4O086103; Sun, 24 Jul 2022 22:40:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OMedgO086095; Sun, 24 Jul 2022 22:40:39 GMT (envelope-from git) Date: Sun, 24 Jul 2022 22:40:39 GMT Message-Id: <202207242240.26OMedgO086095@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: 87d18efef7e3 - main - Adjust svc_vc_null() definition to avoid clang 15 warning List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 87d18efef7e3df5f4475cfe1a8f6d6782b7c1527 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658702439; 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=4oeuYuJPxAuo3s0naf0X4HrUZ+lisjh4VtgxIfjXHzU=; b=NiJu4wuiyPvdQ+MVN1ITTJ7oaMAANecxYrBujoXDlVkqRZ42WVCdqGVNfVOhcDxyKxb8Wt lAM/u9K+fyccVPc9I9i/OF5Q3Aab75y2jDKnrHmF9ref3papq1NlUr/1LF1rpf5OO+p+AI WGdrVql/vDBhQaOnY1JScicttMrIagodordSlHXRWEw4DG2SIxfh7fLsero3fiyfnyw0+Q 2ONJpeVVlofU0lN3o0FpCP5EZ1rzBU3J/41QQORpO+DOLALuVJ9CCTYaH0fVKtO2X9Q4gd DTHH2T+5+MByVQbUJh5teTj/l/I+cxpx4yXZTo324L+kR9/6lu1v5B0tq3y1jg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658702439; a=rsa-sha256; cv=none; b=jfyokrCtIbxHADsJaP1NrDz3YBpjqJaropSkIsPpMtaEjOHzHvzHy9+K3bWI/4Eb/6Rt2U mkPr+vu2TSMth/bewtWFozXwfwQH+3Ysyn9ucRndYbJVFKm+AIIr9cO4TY1qS1MajQNfz8 z0mJTvMUqn/SZZCtN7yg9iA1tJNXLu3pXN0ZaMpSE1/Y/bkPWBNrTrPXig1wot7/PuoSTS TgVJ3Q6670cGI/ncP6F8YjwJpByGxsmmYOGXnygaEffI5XS8BcfmiSiGatVR2oogy4Rk3D tMyEDrr3qa8bu3oI7nuhEp9x58zQuxbVOxgORB4giFbZL22knFPysuYyw1WQRw== 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=87d18efef7e3df5f4475cfe1a8f6d6782b7c1527 commit 87d18efef7e3df5f4475cfe1a8f6d6782b7c1527 Author: Dimitry Andric AuthorDate: 2022-07-24 21:38:46 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 22:40:12 +0000 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 43d14c702d4e..b8b22fb7f4cf 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);