From nobody Wed Jul 20 16:50:51 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 4Lp1t40K0mz4XQQs; Wed, 20 Jul 2022 16:50:52 +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 4Lp1t344FJz40l7; Wed, 20 Jul 2022 16:50:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658335851; 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=exlGizwdl5PSL3sg/31ExbzVl6utlusuKBE3Nv1Y6R8=; b=VxuxvtViwBCeqm0FI5sfXjt3c4qoxiLnFKQ/HzDXiLMhavQE4FM6qUX3Arx1DxtveobLDG Nnx0ATzANV+cR0t+4dGCN/FMtBOBgJGiWDrOFRc2+w2vblrojn87twKVu00EAjHi9IV1XO zyJqZ1xo4nSEqXBqp15lgd5Y4vdyzeqfNXmEkhFAP5AtjgolVh9k4ueiZKGMNIPLaMikWr RKBgTjVH2qSX0EHUNg3gj01nc/IY2HP6H/6cfXDWG/gxrM8MeTqoUSYwS+0ZxBqPaY88LM 283fpfrxjzcnre3CYGVJIc62YdA/4+dhn2JqP/q8JGhMZlPyz2ub4hLO8VnbKQ== 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 4Lp1t339dNz14ly; Wed, 20 Jul 2022 16:50:51 +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 26KGophS002878; Wed, 20 Jul 2022 16:50:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26KGopTU002877; Wed, 20 Jul 2022 16:50:51 GMT (envelope-from git) Date: Wed, 20 Jul 2022 16:50:51 GMT Message-Id: <202207201650.26KGopTU002877@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: 5c329f0a4d32 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 5c329f0a4d32cec54250ec2d3f61455e85137a6f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658335851; 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=exlGizwdl5PSL3sg/31ExbzVl6utlusuKBE3Nv1Y6R8=; b=Nlmq/sBvopxLpRa/EIjgNHzEhfkDpuy+w19VLouEG9irRkSu41aq8rH3x0cULb6liHlfNb YKlJIVmb+GhwnPocMs+f1C9OAlE6j4neZ4L4O//1rK6+hir9ybgZGjSt9pIHz8dayWpJNu wT7FkOXz37fQ4UtjPDzkShQZGnQKnGl7lYxNcWvHDGOIHzL/rIkIY1W9wugxkIgHEl7Dzj Fsl9w0pzixHiHF2qh9jvcuatRZ2UGshkpJK/8RjGT3QOp7MEDyptFii89WMJy74BaB832q Zjg78SDNdIXHpRgtfsM0AEK7JMPtKqVl15kQHINQXNhAiyv4Yqr8kBE2mjYE3Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658335851; a=rsa-sha256; cv=none; b=M+ke+IvJKBUnOV3IEBn0uo1dBWnnHv5IdMs2jBL+14o6ymmjAtPVmgSD6eFfNz1+yktXL4 GubrJ2wRp+433qCc8HLVzv+isW44G8i+7CbZncK1PoD9H7MErfWrFhoNiIHPn+05jcnmJj 0mSmCDNURQ/LPfR607TYAIus3mtWOVkrbwiqzmZYU6Qqlzt/LJERp0jtdlqIWKdzoSMoaw 4aDH2atVI68fH79h9TfNJA4lTomVsOzF2c0WerNizhg1vsg83OfZikPBQdwhtp8n/UG7CO UrE3fWEsdN5E3pXXprncE1pXfx5sBac659hEq2rz1REknrL56FXLiLszMa4oEg== 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=5c329f0a4d32cec54250ec2d3f61455e85137a6f commit 5c329f0a4d32cec54250ec2d3f61455e85137a6f Author: Dimitry Andric AuthorDate: 2022-07-19 19:43:46 +0000 Commit: Dimitry Andric CommitDate: 2022-07-20 15:13:49 +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 --- 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 503fbef6f530..3b55d59f482b 100644 --- a/sys/netpfil/ipfw/ip_dummynet.c +++ b/sys/netpfil/ipfw/ip_dummynet.c @@ -799,7 +799,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))) {