From nobody Sat Jul 23 08:58:25 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 4LqgFY4mRdz4X70L; Sat, 23 Jul 2022 08:58:25 +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 4LqgFY2fslz3dbn; Sat, 23 Jul 2022 08:58:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566705; 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=imOtq3TpDt+x4xGIjejOavEspNMVS1aHBMXzEqfu+AI=; b=FMtI2CF3+DgwzaepZ4W42GEG07/J1ZMvuRWyNucmrSqDjO8ZLGs01ZGZYoITeT7iAocuSP kpzsQtNrYTMBoRAVtPWYX3Cv1lon/E3p4JNCPTZFbq+R0pUaAy2pXn/Azi4unu1JxZvepG 5uwrDdxi8ZI2HGh9UdR7MeB5SlbW6l79GHiCJ5CqhksEQIwkCvR3gFZr3n+x7tFbo66YVC aEACLEzdCrVfWy9olVG6L3hHQgM0VHaUIWyig6LGRznj7ycorO0uD0NLRyGADdZC72P31U AK20bV+WHSuk10TgqPIUkJo8/3ZXQ/y7HZNdDTQOMeDZPua5TfVV7NGcrs8NKw== 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 4LqgFY1mb0zZDT; Sat, 23 Jul 2022 08:58:25 +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 26N8wPpt012783; Sat, 23 Jul 2022 08:58:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26N8wPcT012782; Sat, 23 Jul 2022 08:58:25 GMT (envelope-from git) Date: Sat, 23 Jul 2022 08:58:25 GMT Message-Id: <202207230858.26N8wPcT012782@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: 9e9459ac32b5 - stable/13 - Suppress unused variable warning in ip_dummynet.c 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 9e9459ac32b56eeac39fd0226114772a440bf83d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566705; 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=imOtq3TpDt+x4xGIjejOavEspNMVS1aHBMXzEqfu+AI=; b=XiU5r8+PZvWKfrSKO2S0C+wDLhnB5jhz5v1a8x7xvHIWebEPnljRb5MpjoDoOBNBr6SQdf LebyRGxS1xewLWkdII/K5nKxjF18wsyLJRNl2edsKcgKiomr+gGJ4FfEMAhVltov/BKrHT lX7aRmGkOAdx6/UiAB2uiH8xGIep6IjEI28CtEXbhdEBVQGvGDSUfubNuhYrTfPbEbKKq/ vcuGKYckmnmMXUCt8yd02FWaad+nMuk3ACZLa2FqPxiIAHzeWDrmNIuACqmRmt68lgKlUD R7HdfiaVQjBrEY/n0pekoKhNHy3k7mNlleNZMRWv5+8NvbV6/ViHgiQ/v25bbg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658566705; a=rsa-sha256; cv=none; b=NS7YhhPY0Q788iGypm5Vta4swqTLLxIFEWboNKmsZ5nJ4p1w+3sj4eGP515W6CEbzHz05x EOtS5PKUafmgPy3UHiRyuTbnnxJl0fGhya7sIP688x0gpN/AO6QI2lnQErSnNZ7YSmM4l1 4k9ipAVa+o/nco7rasJPyEDEOyfqP5slxzS5Z0iBx4u0lO4txo7tR7Dsgta88Tbs1N7XHd BTHy4H/x8ZbrVpwF9QYKgqxnVUJG4pf3aMZCBdyeu7eMnaVDvGj1i9CBILPgKV2fxUXCqa 5SUMRlBgFWcjipwSzrBNrK2qTjRDEta/x3nqxY21oZQyw6patg+NznCnGvwL+A== 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=9e9459ac32b56eeac39fd0226114772a440bf83d commit 9e9459ac32b56eeac39fd0226114772a440bf83d Author: Dimitry Andric AuthorDate: 2022-07-19 19:43:46 +0000 Commit: Dimitry Andric CommitDate: 2022-07-23 08:56:46 +0000 Suppress unused variable warning in ip_dummynet.c With clang 15, the following -Werror warning is produced: sys/netpfil/ipfw/ip_dummynet.c:802:6: error: variable 'n' set but not used [-Werror,-Wunused-but-set-variable] int n = 0; /* only for stats */ ^ Here, 'n' is a variable that is only used when debugging. Mark the variable as potentially unused, to suppress the warning. MFC after: 3 days (cherry picked from commit 5c329f0a4d32cec54250ec2d3f61455e85137a6f) --- sys/netpfil/ipfw/ip_dummynet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netpfil/ipfw/ip_dummynet.c b/sys/netpfil/ipfw/ip_dummynet.c index 93b361755d9c..a157b3d928cd 100644 --- a/sys/netpfil/ipfw/ip_dummynet.c +++ b/sys/netpfil/ipfw/ip_dummynet.c @@ -787,7 +787,7 @@ static void fsk_detach_list(struct dn_fsk_head *h, int flags) { struct dn_fsk *fs; - int n = 0; /* only for stats */ + int n __unused = 0; /* only for stats */ ND("head %p flags %x", h, flags); while ((fs = SLIST_FIRST(h))) {