From nobody Tue Jul 26 19:25:20 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 4Lsn1X2t7Rz4Ww3Q; Tue, 26 Jul 2022 19:25:20 +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 4Lsn1X24xzz3yKn; Tue, 26 Jul 2022 19:25:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658863520; 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=JVbwjeb7694hKb+xWedX+t6eDkd/zxBmImluMldCXH4=; b=lnfjZKgQ1QZ6nyF9mJlQfvsTFDYPbNCcgtVQKn2pjs0W00QdvSW105qzhYqdnDhrkLb9jy a/Z4pCST4InUKKd9kwQVweGWINZ+BE75P3ZT4UtZWmDt9yys0G5uAxgpqAFZto4VSOfM48 ZN+Bps89/fpE7MZBbb5wvCsG/cR8iN90A24Br4CYqVibu2EdcRhPT2OeQz5uHrgiVHbwlc MAf6fgyKjXJwAELYIQNgrvVpcLmArDxQLeq39hsI/A/Cr55Fc3fzg6Uc6s7omnFXgp+sJd S9Qp5QmEwZv4+cU3N4/8zsNiqQDQFQ5FNUbxIqQPhJ7+VMsDJx3DyYbfusnofg== 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 4Lsn1X0q1mzpMD; Tue, 26 Jul 2022 19:25:20 +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 26QJPKEu019606; Tue, 26 Jul 2022 19:25:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QJPKHU019605; Tue, 26 Jul 2022 19:25:20 GMT (envelope-from git) Date: Tue, 26 Jul 2022 19:25:20 GMT Message-Id: <202207261925.26QJPKHU019605@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: a8adf13a637d - main - Adjust function definition in nhop_ctl.c to avoid clang 15 warnings 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: a8adf13a637d8c5af742220e6dac0561c6449126 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658863520; 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=JVbwjeb7694hKb+xWedX+t6eDkd/zxBmImluMldCXH4=; b=Z4qIXAXqZlzdEFVGcH91Vf0bVNyjr4b1LjOW7fqcjFmMubgaj5g1O1/+gOwnAGos2gaYbr NiHltrwVUCDOA5BJ6bJ1glzwLISHaYnDxSZR7/nmgEtvNMwaOpN4zeURFAqhpCebuFpw3I ypwh5/d18wY/oYm1EjvTPX2OyB/3OmwBIWArUiAMQ5W13/23t3tW4UbzDfQlqGJlmz9iXg xECaKSbaDIJJtcaPuoBojQTqOuqgjQ7AVnrktrrzy6ThshoVG0isM8GxpRST+BrIlm2SSB 7oy7uxS6vBW+p9Njp3lme2Ilx8z2FR4vkfwrHh7iwDIWyilWE1LpuEYpHVf8CQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658863520; a=rsa-sha256; cv=none; b=LUfToh0pPQOOISj7S7NXP5pVo2Ot/HhRroWxmI29vTw23S24NgijMPWVZnIGMrxbHDAUm6 FB/smi6u5sFYRhD3Lb0SpA5g/1A3L33FC7hK2W5Mc3UVjbxt3iEqx5IDFkhSlqFV8uPqX9 DrDDW2e6eJLCP7NgK4aZmUbY+jprvJXfOHQvuDTwzTEBru56ibQMWRq0A+E5o7wiubZnYp SoJyroVzxGGihGwSEkNMiLNnBtLP7Gz5je2GJCRhwCFOC9B0ygE3ubtfmHN3Mnl28iJjVa /N4lK45VxUkA6mvhctK0KsxbHkbrCMqAEHfUlL1SettcVE+JD6XWpg38ct6hJA== 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=a8adf13a637d8c5af742220e6dac0561c6449126 commit a8adf13a637d8c5af742220e6dac0561c6449126 Author: Dimitry Andric AuthorDate: 2022-07-26 18:26:46 +0000 Commit: Dimitry Andric CommitDate: 2022-07-26 19:25:09 +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 --- 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 0e9a6b8a0a77..4bf7bfb1b416 100644 --- a/sys/net/route/nhop_ctl.c +++ b/sys/net/route/nhop_ctl.c @@ -505,7 +505,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;