From nobody Thu Jul 21 19:53:34 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 4LpjtQ3kPmz4XPGq; Thu, 21 Jul 2022 19:53:34 +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 4LpjtQ222Rz3bc4; Thu, 21 Jul 2022 19:53:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658433214; 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=hCoE8Ugsrm39sw9m95yjbcflRhLJnyt99kEYrmnRBWE=; b=OZpdQartv4OPKZl3v2K/9jUDVP9mmqtKgiOL07dfj/ZkfAFt13WDYXMQ+MSiP0G1+hWYZ0 Ev7fO2U6wewg4bXZ0b9EpArdcW4xA6WWzvgMcMlyFbW/eeHR90YO1gvX4B54h+apmxsLKr ycG2O4LTKwTR8Nsyqa7TjPjubtjt3O6JX7g9xRTmLI+Y3NW8/rGxlg4T3S8/+JE/xImrQc adSmgYAUH166wOl+NjoE3WyXmInxvNoGDpsc4CL7P7ysCP8PbKsq0AT2v0sqyL23GDBFx4 YGjYWpXwvJx493tJEE9QB8d7iNAp6tCAP4Vq9ak9qT2YOyfcey+IKaVn/F9JOg== 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 4LpjtQ18Q3zZGQ; Thu, 21 Jul 2022 19:53:34 +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 26LJrYaQ006345; Thu, 21 Jul 2022 19:53:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26LJrYdu006344; Thu, 21 Jul 2022 19:53:34 GMT (envelope-from git) Date: Thu, 21 Jul 2022 19:53:34 GMT Message-Id: <202207211953.26LJrYdu006344@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: d62830c5e493 - main - Adjust ipfw_{init,destroy}_sopt_handler() definitions 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: d62830c5e493133b0212f39c7efdab4232f87abf Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658433214; 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=hCoE8Ugsrm39sw9m95yjbcflRhLJnyt99kEYrmnRBWE=; b=qjC7TkPKZ6Xmq4+guon97ndGH7Fw7Hs6WPrpnFt++Mg0xje3iPNQm9T+H2YDlQDV+58q1B fFUOXpG/HLUYs3w5EvkK1Jzx2Mqq0uBnveJckq+xXRZn16ed8MadGXG1l3Tg1e67WOkmsr 8EbQzt6EG1c5iNiafFW8y9nSvrObnz/HhSUL5iWfoec7oD1GimH0LKXH/WKY++P0tThjP/ cqAvFPTwmuEc+R53iTNkdsobzGnh+AJsgdXxjiA9A/MHorkeVyNXt4MDixVRjlmHyPQY0+ x0Lwte0XxfOmpIJCOIO8S0K59O1ecj3IUxnYt+i+VdyeUkAK2PnGQiWAZow5pA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658433214; a=rsa-sha256; cv=none; b=hvDRnclVP2J9jCgnoEMKVvaNIIX6XEFaUx6YWKghz1VduMi9OQN1ZA8e8X9e4/pnDumkpw 4+hNZD166Xn69blExzSqE+iU0km8kUqhG84a06S+pj4xA3PhB++H/p6W1mSecEQ9PcOYn6 rNTtXxut/oggsg4KwlEgca+tk7n6ZbPRk+WTiarjRdVSnCrNfwU+EVENfelPz/j+EbNxok AiwN6q8oTU4iwwupAjeTugQqlNao/sIga/m9BwHnjTkspPMWIbwyblYn0QN95yNSDcw+nl MrIkjoXGl7+PED3UiZQGL3cM8SxAmeoehUTkin3961Y4mu0qS/XHGsTO50cKzw== 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=d62830c5e493133b0212f39c7efdab4232f87abf commit d62830c5e493133b0212f39c7efdab4232f87abf Author: Dimitry Andric AuthorDate: 2022-07-21 19:30:05 +0000 Commit: Dimitry Andric CommitDate: 2022-07-21 19:30:40 +0000 Adjust ipfw_{init,destroy}_sopt_handler() definitions to avoid clang 15 warning With clang 15, the following -Werror warning are produced: sys/netpfil/ipfw/ip_fw_sockopt.c:3477:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] ipfw_init_sopt_handler() ^ void sys/netpfil/ipfw/ip_fw_sockopt.c:3485:26: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] ipfw_destroy_sopt_handler() ^ void This is because ipfw_init_sopt_handler() and ipfw_destroy_sopt_handler() are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days --- sys/netpfil/ipfw/ip_fw_sockopt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netpfil/ipfw/ip_fw_sockopt.c b/sys/netpfil/ipfw/ip_fw_sockopt.c index fd50df8dc412..e0d80a67827e 100644 --- a/sys/netpfil/ipfw/ip_fw_sockopt.c +++ b/sys/netpfil/ipfw/ip_fw_sockopt.c @@ -3474,7 +3474,7 @@ find_unref_sh(struct ipfw_sopt_handler *psh) } void -ipfw_init_sopt_handler() +ipfw_init_sopt_handler(void) { CTL3_LOCK_INIT(); @@ -3482,7 +3482,7 @@ ipfw_init_sopt_handler() } void -ipfw_destroy_sopt_handler() +ipfw_destroy_sopt_handler(void) { IPFW_DEL_SOPT_HANDLER(1, scodes);