From nobody Thu Sep 10 14:42:57 2026 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 4hggQG71WBz6sB4R for ; Thu, 10 Sep 2026 14:43:02 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hggQG4wPNz4Yyg for ; Thu, 10 Sep 2026 14:43:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789051382; 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=XX4DCMSQP6TvOE014asJ87J8GkQ20CHP+OWMGoBXiJg=; b=uydngK+8j6/02tvDNJDCO7h1zoeRGpectW44z8JOeOAQQtIf9tKu7gH3Rl8ZN+N0cd+oG1 wXt2hiRVpT7we6Yi5u0sb1o/rTd3OMYBe4m8dMcY9lCkGiojrtuFRbkrWdLcT4cSzrdjVg PPPmsr2G5lPHH7WW/gG6RwVMbB/FkJUK6TbK22vedR+2VaA8otHWJL/U+0SzVBl9sp2BJg JK6KhP4re7uk+X659IQicbPfAPoU2VWny0lkQ/X76FCOd1hYDd6jZsDdxPuNa+93xGLoDI V6vXcLK6mCZHrwMhlSATx/ri7CFEuRf6CKp8I7rF9lAFgoz4185iUTxjfrMChg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789051382; b=C/+z8RCCWy30WXz4zUhTkcPscDGGkubeMgGKGz37Zuq+jGZNRbtnLo1xHsKvCAU5T2Ufod 8yld9IUuV3ccxRVKlQm0phwxD435uiCHlI6AZdCut7J77kZkXWEhMjApFhLZuUaeEePlPC IVDDnWmyqzAesp+epZUFuhxeSzfDyGv2F+HmEToTH74kwKZZ4EoJku6bwrMMBzoluf4HxS efruyczXXH7iviKivQ95OBkDUlPd9PnAaQpTvYtiO1W34AisM+Eb/S8bruTdJkF7e2VgEH Jdq0WwJTNx+TeP9Egz7Gv7VXGjl7V2Fm2h5MKYANhfKH35a3Il54VTUpaR0ePQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789051382; 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=XX4DCMSQP6TvOE014asJ87J8GkQ20CHP+OWMGoBXiJg=; b=iqmukit3JQNXhULjspDIK9KMB2uQxDqEEHhLyN8RhgflH6LaBmgxP7vNj9ATy2mCKcLoNj Dts57wLPreLL0BhxStVVHdmCOZLh/nHn49u/XiM2uZstNEX0yARcBL/pRvPm4/c+jEPt4o jtIntOKFZatNOSad6F3TbiOJWU/EKYUuSol8J3zS6EdAsPIGSJmLU1SlV1m4vLUow4/ee/ /KBS+E0vVr5N6jWDg7wXD0h6lqkJQ2UfQiFSzYJ4lWCoJsmYee2b+yEtHp7n11hK5EQbRT iqvloaDgEDbrScLbWO9AUXaI2Wb4w3xuo60R1hkb575qPM4w+3bVZ0wWJaYIvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hggQG3xchzX12 for ; Thu, 10 Sep 2026 14:43:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 27401 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 10 Sep 2026 14:42:57 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Siva Mahadevan Subject: git: 94f7019668f8 - main - ipfilter: remove unused variable 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: siva X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 94f7019668f8a02416c5b32ba8a9c32a68edd261 Auto-Submitted: auto-generated Date: Thu, 10 Sep 2026 14:42:57 +0000 Message-Id: <6aa2c1f1.27401.52511a47@gitrepo.freebsd.org> The branch main has been updated by siva: URL: https://cgit.FreeBSD.org/src/commit/?id=94f7019668f8a02416c5b32ba8a9c32a68edd261 commit 94f7019668f8a02416c5b32ba8a9c32a68edd261 Author: Siva Mahadevan AuthorDate: 2026-09-09 17:14:45 +0000 Commit: Siva Mahadevan CommitDate: 2026-09-10 14:34:56 +0000 ipfilter: remove unused variable This fixes the build with gcc 16 after the changes to -Wunused*[0]. [0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused Reviewed by: cy MFC after: 3 days Sponsored by: The FreeBSD Foundation --- sys/netpfil/ipfilter/netinet/ip_nat.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/netpfil/ipfilter/netinet/ip_nat.c b/sys/netpfil/ipfilter/netinet/ip_nat.c index 9ee1c5d24ed1..b7f5eb94b1dd 100644 --- a/sys/netpfil/ipfilter/netinet/ip_nat.c +++ b/sys/netpfil/ipfilter/netinet/ip_nat.c @@ -5807,14 +5807,13 @@ ipf_nat_expire(ipf_main_softc_t *softc) ipf_nat_softc_t *softn = softc->ipf_nat_soft; ipftq_t *ifq, *ifqnext; ipftqent_t *tqe, *tqn; - int i; SPL_INT(s); SPL_NET(s); WRITE_ENTER(&softc->ipf_nat); - for (ifq = softn->ipf_nat_tcptq, i = 0; ifq != NULL; + for (ifq = softn->ipf_nat_tcptq; ifq != NULL; ifq = ifq->ifq_next) { - for (tqn = ifq->ifq_head; ((tqe = tqn) != NULL); i++) { + for (tqn = ifq->ifq_head; (tqe = tqn) != NULL;) { if (tqe->tqe_die > softc->ipf_ticks) break; tqn = tqe->tqe_next; @@ -5823,7 +5822,7 @@ ipf_nat_expire(ipf_main_softc_t *softc) } for (ifq = softn->ipf_nat_utqe; ifq != NULL; ifq = ifq->ifq_next) { - for (tqn = ifq->ifq_head; ((tqe = tqn) != NULL); i++) { + for (tqn = ifq->ifq_head; (tqe = tqn) != NULL;) { if (tqe->tqe_die > softc->ipf_ticks) break; tqn = tqe->tqe_next;