From nobody Thu Jul 21 19:53:36 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 4LpjtS4Sxyz4XNtJ; Thu, 21 Jul 2022 19:53:36 +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 4LpjtS3qKbz3bjZ; Thu, 21 Jul 2022 19:53:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658433216; 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=wK/V6BZQ5hwviTRFuEt9hqm+Q+ci/VwE4fQhfUGAp5k=; b=UmlK6fm9HI1YLmgGP9q268bHc41O2cEaxroPgMRXfO4yqnhrg0OyvwhJwvA1DJsVfvSNtT zev6PGqVGd3+G6k1VvTGdP8YoVrh2U2eRbw40r30eUQq84t10PBDTAoivIKQJ6eQj+lMXg nrrBLexflL8PfpdT8hRx6ofA/v2twgxQuUp2KGW8dgbIzXJbEC860wpbJ90flG4tAniKYr c8P5UjhaHhOY4cae3AZujNz6MdTXQqj41HzDoxhOQwL4L+m/SHw1nqq4+UQY3wDlMV3PFM 5DDBhRMpOOk3zKtxM/5c3Hm8+R3OyKkCjjRyxG0i5G1yAZgu4r//X+ru2YGFXA== 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 4LpjtS2wmBzZDn; Thu, 21 Jul 2022 19:53:36 +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 26LJraCF006412; Thu, 21 Jul 2022 19:53:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26LJraaQ006411; Thu, 21 Jul 2022 19:53:36 GMT (envelope-from git) Date: Thu, 21 Jul 2022 19:53:36 GMT Message-Id: <202207211953.26LJraaQ006411@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: 1eea6b909783 - main - Adjust ipfw_iface_{init,destroy}() 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: 1eea6b9097834484f2238298f550bb418901c313 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658433216; 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=wK/V6BZQ5hwviTRFuEt9hqm+Q+ci/VwE4fQhfUGAp5k=; b=rGp9KEJwCLkhh7Yf7hMiFuK0+S/7Tg7SQNmCdtPSGzm/5XZlsb42sjvTwXKS1lzAy7oPDP DxQpIKFU5GEoXYlnFSzickHnlSSlUcoqxG0SVpmZPQz5WnEBrmwyxTLm8SF1Zsz1W/5acJ xGZIkRlf+UhCL5Jw0ax3nUPEIybuoVrlvM43Rt0C2sCAmh6ki8CfAOY04JLi5MZlj5eKSr KxZ4zDcV01+Ov5DHeW5+mZq0W11P4MqABd59ucqiHNAnwOhqdZJjh4jaLGZrEErRV9Vhbn ThnQg8t/bQzLpV98/znN4zYRFkBupwPyHr55WI9d8u/ykXt5tCjnuqNO4tURBA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658433216; a=rsa-sha256; cv=none; b=Lqlbw9LtmHuIDXHYprLbxIobIW3yiC7dXl07c2oNBjSEtd9pIXTLxjs2rbDbgLz3Uod+06 wZvGRZZkk3QIaPKdbWA55CLGFLYU1BO3HmVqlgjLEII7I2sgV8Qk+K7NmadKZ3X/Bbh9Dl eJ7iINj27+W2IoQpYmcNxJ9QQVuhrf/ro7ddV92Wa2VlHqi8eacxPmmjfpiewFMO4HmIjN XaFTxefXVFaQ9Shj6Sq9Bj2JtSQK4N4HieZw0P7Tdlv2rC4v8B3E2TU1V4/oLmzWrGvVca jy2BIaZgnskFmktui+9JtsrVVoV/yBrg13nDmfoHPHsYeA/LXBnIdDvpxg0vdg== 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=1eea6b9097834484f2238298f550bb418901c313 commit 1eea6b9097834484f2238298f550bb418901c313 Author: Dimitry Andric AuthorDate: 2022-07-21 19:37:09 +0000 Commit: Dimitry Andric CommitDate: 2022-07-21 19:38:17 +0000 Adjust ipfw_iface_{init,destroy}() definitions to avoid clang 15 warning With clang 15, the following -Werror warnings are produced: sys/netpfil/ipfw/ip_fw_iface.c:206:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] ipfw_iface_init() ^ void sys/netpfil/ipfw/ip_fw_iface.c:219:19: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] ipfw_iface_destroy() ^ void This is because ipfw_iface_init() and ipfw_iface_destroy() 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_iface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netpfil/ipfw/ip_fw_iface.c b/sys/netpfil/ipfw/ip_fw_iface.c index 7993464819c9..3e366db3af9a 100644 --- a/sys/netpfil/ipfw/ip_fw_iface.c +++ b/sys/netpfil/ipfw/ip_fw_iface.c @@ -203,7 +203,7 @@ ipfw_kiflookup(char *name) * mutex init. */ int -ipfw_iface_init() +ipfw_iface_init(void) { mtx_init(&vnet_mtx, "IPFW ifhandler mtx", NULL, MTX_DEF); @@ -216,7 +216,7 @@ ipfw_iface_init() * Unregister khandlers iff init has been done. */ void -ipfw_iface_destroy() +ipfw_iface_destroy(void) { IPFW_DEL_SOPT_HANDLER(1, scodes);