From nobody Fri Jul 29 18:47:38 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 4Lvc2g65hbz4Y1nt; Fri, 29 Jul 2022 18:47: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 4Lvc2f628lz3q0B; Fri, 29 Jul 2022 18:47:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120458; 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=gj9bloGmRD4DMwazda6DMlHwnF8+7zrSd8vh3CFLtVo=; b=Y52/6Ph+FCG8oo5t3J6M/clKthXvyEbWrqV5rruDzQhUtKSLJA4q04mS+UUQUHbXTXONgv /XG2wPswKYA5ub6VX/s3ROtmjjEf3kf+X1dBw+xe1c9T8jf0Xsioyinc3+FkhLjEszizQh E4KuxCCAnLJ0dnDLHyeUrt01Zags32BXvxdAidOe8v5U35b0RSeHNpMdXSLXpGv1gIQwzb CbRigo8hw3KtL+VgoEUxurNoryYXElEpbIiU1oJQAUdCBo78C+WMcvip+cdWq10xQrA3X+ y5lKa89TRj6zoaQr8Z4sqVUDQUk19RX7sBOUaGtsWzZnu1NhtaiJgqHpzHsKWA== 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 4Lvc2f577Hzm46; Fri, 29 Jul 2022 18:47:38 +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 26TIlcwa024374; Fri, 29 Jul 2022 18:47:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TIlcTT024373; Fri, 29 Jul 2022 18:47:38 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:47:38 GMT Message-Id: <202207291847.26TIlcTT024373@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: c7c3583e3d61 - stable/13 - Adjust function definition in nhop_ctl.c to avoid clang 15 warnings 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/13 X-Git-Reftype: branch X-Git-Commit: c7c3583e3d61ae5425e3224826eca52234d90a16 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120458; 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=gj9bloGmRD4DMwazda6DMlHwnF8+7zrSd8vh3CFLtVo=; b=Xvss4o71M+wykw7sRVkcT6Eoo+3vkaUJiYXA4WElzjbBg/67CFFxzgKFs05cSCc4czDQwu kr5LwEaCI7bzc3XhA988jttqIcngAAMqwzEAJ/q9aXOqiLSyr90AsSSJR5gIZCH1gUG915 Cvvrde0of6eAGK8GcNFhECTqsLY+Eqe/nhVMaljG8wvQRZsRF8YvXcPZzsjNpT6Zukn8ra egOC1zr9Voy7pChCQb4uSGTIMHyAoiaQZo+r7wrjfkwpx5krfPF7ALudRxk1nDkhswY0xd C0I5lUP9ZHQ6dqKJkr61K3A9OD3RoIcIpJrei2ttHXv7bHTR90ZRy2RaSoRFWg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120458; a=rsa-sha256; cv=none; b=IxWTCWKDxXXfYTRgFN+X+zQvCJ2/NR0i54VbcWDlahO4mDaorQcAoAJPlKukGx2b/ZSd1r M2VRsTbdMeeO2W41ySzsIDC+gMLi8fO+Ep42/KHqPVIwfpPizhP7SeplVqGny1Crxf5ZPX ghv5J+hx3JNtbOlwYdhuxkctXaD4fmodkr9mhAs32OqplSA+M0xM4qVGlDPs1gOuwy+ar6 E+2pinh06ArEw0SMNqgicVZ6Dfw9Vbsrkwnr2RN641P3FLFuLUfok+Nekeouu+pDUOn0+8 9OvQu+9fky+6WI6WS9MYs9HW173GueAr4XdN45YcSwGKrsW5KCf0hD0n/x+tPw== 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=c7c3583e3d61ae5425e3224826eca52234d90a16 commit c7c3583e3d61ae5425e3224826eca52234d90a16 Author: Dimitry Andric AuthorDate: 2022-07-26 18:26:46 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:30:00 +0000 Adjust function definition in nhop_ctl.c to avoid clang 15 warnings With clang 15, the following -Werror warning is produced: sys/net/route/nhop_ctl.c:508:21: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] alloc_nhop_structure() ^ void This is alloc_nhop_structure() 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 a8adf13a637d8c5af742220e6dac0561c6449126) --- sys/net/route/nhop_ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/route/nhop_ctl.c b/sys/net/route/nhop_ctl.c index 16b8ca46739a..56d30405fc1e 100644 --- a/sys/net/route/nhop_ctl.c +++ b/sys/net/route/nhop_ctl.c @@ -502,7 +502,7 @@ nhop_create_from_nhop(struct rib_head *rnh, const struct nhop_object *nh_orig, * Returns pointer to nhop_priv or NULL. */ static struct nhop_priv * -alloc_nhop_structure() +alloc_nhop_structure(void) { struct nhop_object *nh; struct nhop_priv *nh_priv;