From nobody Sat Jul 23 08:59:04 2022 X-Original-To: dev-commits-src-branches@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 4LqgGJ70mYz4X75X; Sat, 23 Jul 2022 08:59:04 +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 4LqgGJ66ykz3h5h; Sat, 23 Jul 2022 08:59:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566744; 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=0hG9XoVggknvpzklx7x/llRnrHlywENhdVuRVQMrE2M=; b=jDYzBkmISqQEP2qfDEX6NQKuHOLeJZpkbHoKHECr8vQeRjstGStQ3JXi7vhAhrL9dUZN+K LnLx2G7Ys/+001jEOKuACZC1Nzk55iXHj9PwO+MPFE3CQNapSHQ4Wcy/H7FuwRSzWzESpk i50CZFJzGeTWdwpa2TK9L0QrxCCkQnobvSNU0zhBd1X/PkCeikKdRjdyhDM9vIKQP+/3f8 MDbRJsvmHlaDBWjkuib+rARYrLYpD5FGV02JNKbpZbVemFliNlPr8Dh13dun7TT+ZRAk1w yJfvAlTrXxUr/6iUoO8ZfBStBcjFt8ME0cMItNUdwpFVNWgR/0D+2JKog0jZ7Q== 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 4LqgGJ5D5RzZDY; Sat, 23 Jul 2022 08:59:04 +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 26N8x4ZI013420; Sat, 23 Jul 2022 08:59:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26N8x4ZD013419; Sat, 23 Jul 2022 08:59:04 GMT (envelope-from git) Date: Sat, 23 Jul 2022 08:59:04 GMT Message-Id: <202207230859.26N8x4ZD013419@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: 375c9cdab170 - stable/12 - Suppress unused variable warning in if_malo.c List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/12 X-Git-Reftype: branch X-Git-Commit: 375c9cdab170f74355c84757c8d8a9efde241785 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566744; 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=0hG9XoVggknvpzklx7x/llRnrHlywENhdVuRVQMrE2M=; b=Dyw3C+uUSLemqhxuojtBPjUTvsXnF/G25LPP+oUpUMuRWwBJiwhmlhcffNI8O4qOxmkO3Y 7AJQ9uwtTmk9T2saNMNaVtv9PKb3KdLUgU3atTcKWgJczoAlPosbwyfiNKoYUIEZF0j6UQ +vW+mE9l7YjmdZEikdFPBh09GR4nzatSxjmZNPWlnFuHJYpbsC+K82quHMqI++ro+EXKcC UjyXqpawoQTawNmrL9zlx6/SghnHC/OkgK8lMIqYfYKqg2nEFrpuNiWjxgrGmTGU9SLJMf HJ9DZOodo1yGrD7P6aeO2HqECULFEqiBHBRCJvx5aacPJZ+U25gxar31u7w2VQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658566744; a=rsa-sha256; cv=none; b=Zxr2+zAqo1/Ur77eLkkO/DT1Lpbt2mSzG3iFXmEHpg/3wuGCOQD7k/ZtiTSqntEYfaZ02q GDvT/8imdKDzbJ9q5XtGQxtXYwwCg4Pgl13E+rQDpR4ALB3KsbxGDixau753brsek5m+H+ kZw1FIz0qqm5gYaS7GbODiUgwMtMjsWcvVPq+gFDJcNBaPdw+3KI0AMq0/6UCzRf01W9Ll 1twJioDrgg/G8tnnBaIdbTt8AFgDWoXzlkA36OH7/3UeE8/hwUpm/+MyoWAUlIGINNvHpt 2OBJtQdyWlsFkrMIXUONb4WQenFpZKZy2ILJb7GNFqooIq61v4Fx4MIEmblWmQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=375c9cdab170f74355c84757c8d8a9efde241785 commit 375c9cdab170f74355c84757c8d8a9efde241785 Author: Dimitry Andric AuthorDate: 2022-07-19 19:17:03 +0000 Commit: Dimitry Andric CommitDate: 2022-07-23 08:57:43 +0000 Suppress unused variable warning in if_malo.c With clang 15, the following -Werror warning is produced: sys/dev/malo/if_malo.c:1573:8: error: variable 'ix' set but not used [-Werror,-Wunused-but-set-variable] u_int ix; ^ Here, 'ix' is a variable that is only used when MALO_DEBUG is defined. Mark the variable as potentially unused, to suppress the warning. MFC after: 3 days (cherry picked from commit 218634014374de0032fcdd56656ed6b3650634d2) --- sys/dev/malo/if_malo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/malo/if_malo.c b/sys/dev/malo/if_malo.c index fd672006019e..5b561bb3e54c 100644 --- a/sys/dev/malo/if_malo.c +++ b/sys/dev/malo/if_malo.c @@ -1576,7 +1576,7 @@ malo_tx_draintxq(struct malo_softc *sc, struct malo_txq *txq) { struct ieee80211_node *ni; struct malo_txbuf *bf; - u_int ix; + u_int ix __unused; /* * NB: this assumes output has been stopped and