From nobody Wed Jul 20 16:50:49 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 4Lp1t12c0Xz4XQ6b; Wed, 20 Jul 2022 16:50:49 +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 4Lp1t125qkz415x; Wed, 20 Jul 2022 16:50:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658335849; 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=XBSmHpvfzucC0Vug44q4EH4/24n6mo5DU8iMDxzHT50=; b=v9u5MZshVD9VsFeWcCVGNQXj+aM1G77qmvgr54PkXhLQfDvND4x8Ss6KGOi3YNe0oQRlwJ EHay7lnMjf7GaxpYpp1ynCAw1/ypLt4xQXVCmPYW68Hm1gEt8lTuMhtBdMkKs8PgqD1OzK rghZrdrsDvWqrKPyeAD1nNc0Wvao65hZC2LVuktzKng6mFwFurUfBv1bnX6mX7H+dabOQp 9Zwq5k25YLRk9zTmYGMo+PGCLbxAS7fECf7k8+Wtzg0VFRQtIE37kw1y4dsxEzzon+0MrE 3stQO2fSYlsHupyk8QIbQpw1296SIUAAlw43WKLOAwkmMrLmN4tSa0oF2BeKAA== 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 4Lp1t118DRz14xN; Wed, 20 Jul 2022 16:50:49 +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 26KGon7K002830; Wed, 20 Jul 2022 16:50:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26KGon9j002829; Wed, 20 Jul 2022 16:50:49 GMT (envelope-from git) Date: Wed, 20 Jul 2022 16:50:49 GMT Message-Id: <202207201650.26KGon9j002829@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: 218634014374 - main - Suppress unused variable warning in if_malo.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: 218634014374de0032fcdd56656ed6b3650634d2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658335849; 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=XBSmHpvfzucC0Vug44q4EH4/24n6mo5DU8iMDxzHT50=; b=g8l4cn+TASR2rmBibOSHbHE+28eCVyuUtK/ymG07VzCsL+nJm1Oukv/+UYYnMwISOzlYDc zXHKS+8OGLLbmak+VwaK5OgLIxvvFXz4ZVe/4BnhfOuhm9HA1kJJ+Ti+N4MaSYTJwhVFkT 1frb7hwr9H29WtALZ7+EapKzLfq/32qxawqOxv2w8lGUGrmG6bv8Zu3MU0BwYhh/k9Ujap 6+JZrGNdW6jyVvl3POb01n3+Ylk/OlsE1Lq4kWnlEMaWB88ppcZBXCg71BORfIkcTCjwKw 76bpH8xWHtBgiI2q5SmaVmFbdCeRD14NHztRgg7fK7tPG/0Y6mNwA3r3xc4Crw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658335849; a=rsa-sha256; cv=none; b=rGs+X+hOsI60yZoczZJ8+GDtbOdYipmC4qkrudK4nhTCUHKSxQF3JrfQz1TghK6v6Zc675 sgD8mBfj12O/6Ok2rLmFS1jjaJBk+nKgk0eblilGuQ19OM2VfuSKlfVl0tquHIuUYitL0L R5N0JmIn8dZzCL/Ep/59zH8RiCjcX5DafodWpDBZYQspx1GVsLCTUgUEfvIhMJ6Hn/Kcxs zhoxrXPjkNPcWkwgjariZPk3/8IrZCb3MQJGiGOuDpv0q1nfnkspQw71SVheMQPB9/E17w mRq42Qq6tDvoKUqexgO7yLj1AlcTZpWg9xUbcGXjyV7GnPg+zb8ZdIHxMRx8/w== 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=218634014374de0032fcdd56656ed6b3650634d2 commit 218634014374de0032fcdd56656ed6b3650634d2 Author: Dimitry Andric AuthorDate: 2022-07-19 19:17:03 +0000 Commit: Dimitry Andric CommitDate: 2022-07-20 15:13:48 +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 --- 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 89c48c04db7f..d9220eaee0f9 100644 --- a/sys/dev/malo/if_malo.c +++ b/sys/dev/malo/if_malo.c @@ -1570,7 +1570,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