From nobody Tue Jul 26 19:25:22 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 4Lsn1Z3xVZz4Ww7g; Tue, 26 Jul 2022 19:25:22 +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 4Lsn1Z3VLhz3yPB; Tue, 26 Jul 2022 19:25:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658863522; 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=q7D5a7MG5+ChZpdhbF3YdXtyNO5vZVH5XCti37jJD/A=; b=vjShhLW2TSc4HaRLDDIZGN6mhH4PqRQuJMWklnyrwhwFI3cn6Mm9K5PN3KdQq5BPx5fytN JAfNDWrncRt6/o3wG4ZF60dlis9Svd6AvShlTuwU7o6OWMTytWbrB2ywOGLLPgKfTxTSiH AFdj1tukL9HXuu1ryCcASGKFHej/9qwzFgHP7JwsOghmbb93L6V0kF02oU+sJE39mDPv9g l5atbMFG0fqAtckXdIiHGv/ZXk6dQxeXAeUGD3kAo8uebIrP8SZImidfscPxgfnESzwLGv 2SvFcttauvB4Xgo0+ygjkwkF0CKlato2LcTtcz4rFxqtLIWahYs0o1LWKZ47OA== 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 4Lsn1Z2bFMzpYN; Tue, 26 Jul 2022 19:25:22 +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 26QJPMiD019661; Tue, 26 Jul 2022 19:25:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QJPMXx019660; Tue, 26 Jul 2022 19:25:22 GMT (envelope-from git) Date: Tue, 26 Jul 2022 19:25:22 GMT Message-Id: <202207261925.26QJPMXx019660@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: 9319211f96c6 - main - Fix unused variable warning in ieee80211_proto.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: 9319211f96c6f11959c76f1d565a744ab37b0031 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658863522; 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=q7D5a7MG5+ChZpdhbF3YdXtyNO5vZVH5XCti37jJD/A=; b=n5vlBWppguXcehPWDJ2VBnXC+ksvl1uaBobFNtorxB+DmJwzHUEgsdv8ttwFHnsDRM85yg TvSFX0TJ+moBPFTdmEHgfnszWMX+vCXdHhRLjMb9Yrgs6rkaUtKecxDzx95UAXbymFN/pR XcpfawypGma0NDAQGbmHkMLb7oZE9oF+7Ddj8wrL03BbjGAQ4Mra7ku45VUbmQTpLd4cVt wYo89W0KBravdRMCA8eDXgLYSk/KqGW+2TmyzK1recxoT/eW1A7UpZZuTzv23FU4kF1Bqe w7Ult/eAlMrwWnqY3tI0hvhdTMjVVI6a0DZl9EtTRduvfKfdQVnrgiUOMcsEaQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658863522; a=rsa-sha256; cv=none; b=EH71NAbVniIGvusrJi1rP4JkIiagTCm1K0EY/UarxY27mnHVef50IAagaAjNfpTtCqU3FC 5FThLsbDa2e+ShHe78HyVGsg6SJcJMPK2qGWOcW1ezx2xsp++sjNWe3+a8qlKNSIUGImPo zr1FthXjFOlFX5/gaaGLAWWKOHVSSeeIUMDjd/PTbLiT+zOrRjShLZ9PV14cWdD5txFRCb xsSom85AFrTTdE78ukmUzL1Ae823sZ4hlwguuek1kCe18ea/M18ySpoOAcA+9+uuvwMbft pozJ4vbxYM3jSuKh4VuqZZbeP7mbouyPvy79cK3Fyx5g88BpFkyVFoGiZSvGNQ== 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=9319211f96c6f11959c76f1d565a744ab37b0031 commit 9319211f96c6f11959c76f1d565a744ab37b0031 Author: Dimitry Andric AuthorDate: 2022-07-26 19:05:36 +0000 Commit: Dimitry Andric CommitDate: 2022-07-26 19:25:09 +0000 Fix unused variable warning in ieee80211_proto.c With clang 15, the following -Werror warning is produced: sys/net80211/ieee80211_proto.c:1070:34: error: variable 'num_mixed' set but not used [-Werror,-Wunused-but-set-variable] int num_vaps = 0, num_pure = 0, num_mixed = 0; ^ The 'num_mixed' variable was in ieee80211_proto.c when the function vap_update_ht_protmode() was added, but it was never used for anything, so remove it. MFC after: 3 days --- sys/net80211/ieee80211_proto.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c index f42c62444579..9c7343d8b904 100644 --- a/sys/net80211/ieee80211_proto.c +++ b/sys/net80211/ieee80211_proto.c @@ -1067,7 +1067,7 @@ vap_update_ht_protmode(void *arg, int npending) struct ieee80211vap *vap = arg; struct ieee80211vap *iv; struct ieee80211com *ic = vap->iv_ic; - int num_vaps = 0, num_pure = 0, num_mixed = 0; + int num_vaps = 0, num_pure = 0; int num_optional = 0, num_ht2040 = 0, num_nonht = 0; int num_ht_sta = 0, num_ht40_sta = 0, num_sta = 0; int num_nonhtpr = 0; @@ -1108,9 +1108,6 @@ vap_update_ht_protmode(void *arg, int npending) case IEEE80211_HTINFO_OPMODE_HT20PR: num_ht2040++; break; - case IEEE80211_HTINFO_OPMODE_MIXED: - num_mixed++; - break; } IEEE80211_DPRINTF(vap, IEEE80211_MSG_11N,