From nobody Sat Jul 23 08:58:28 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 4LqgFd2LFqz4X6w0; Sat, 23 Jul 2022 08:58:29 +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 4LqgFc5cJZz3djv; Sat, 23 Jul 2022 08:58:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566708; 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=pN6ejUIi6bVsMiowFo/DUVxahHEnEDqygrATVqlpMoA=; b=It9hABU6JfKjoTZNqJ2B5yE9VzRAbvgboE4JHtoTD5bHg652wXHDNk5mouAkbNv3yS1rnw HE7tZ89DRnQXsFRZapphlQhoo6PjMJ+bvC0ZRuo3cMBn1syZAyQTeof8BXll4RTn28uswy rRS7EIP2LhecVAqYEwAI4Z3mQ9+iigVQnZSto297ZSKn1LjYgqWjuHsuHxDL7g9/dUQhEj X9HxNsXOiY6qaiQ5+eowgLEyHEzZ8efGUHiK3NSt7hFHoJjf51TBY6bZkfvxU/zwMUvOlK gkfbJ7Z/YSym4DbJEidkNSou7O+a0acUt6GDBiwz7OhdxxiIgSowTGZ7CYZMVg== 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 4LqgFc4jW0zZ41; Sat, 23 Jul 2022 08:58:28 +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 26N8wSpM012861; Sat, 23 Jul 2022 08:58:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26N8wS0K012860; Sat, 23 Jul 2022 08:58:28 GMT (envelope-from git) Date: Sat, 23 Jul 2022 08:58:28 GMT Message-Id: <202207230858.26N8wS0K012860@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: e21693924acb - stable/13 - Suppress unused variable warning in if_mwl.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: e21693924acb47fdf8a5b50705f6e2518af47d19 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566708; 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=pN6ejUIi6bVsMiowFo/DUVxahHEnEDqygrATVqlpMoA=; b=tEM//vHsHH/nWNivFc+i0IHS2JWRo9WUXeCDiNuluH4AIMPovsvR1zJkJT7uGFyWJMdsJJ liiH45uMgRqDdkCXyPAQRCZKs9/aRV3Jt75GrCubb4991BociMFzSfeenocqT/E0rIItIA Vo0nlWHH32iLiddVgWj2MT7lr0gsKMUkn1EGzPq0lkrAdRwvzXNANcufNUQRQIi6vCjoYc 8A1JJPJ72l8aaGHVNXfJWqRP2m2OzM/5PIuIlhco9wpV6HC03fE3hafrZvx4ZQ4cw9njIY 059biffQut87rpQIUzD/e6SBumiDunaC+k8WXiySLB2zupZumLDjDIajPq6TaQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658566708; a=rsa-sha256; cv=none; b=JranLqTWeHGTdy0Bdj/gwjv5gVQCEUayg4ts+z0dvi+3t459UixdFfgAbxekQwtzW8cYLx EsGr8mdtgTz7PD/y2RfKCADO4xnR5TxEpa2NHZujhVrPxN91uVg0V3glHDPg6pZo/IS/Vf 487E9NMTcJDusE48o/+BTOxmFF8hgml197ncRQbIRShi1PFcpnr4qXC5qHhH7gd3NeBvMJ TaLoJHc/5Ol0nad5gy2BjGORap8xaoGsKJehhgBNJ7oaBD2bIyB8tO9Gip4cgrpRcl9/lo OJSLVrNRco/1NPXQBM+2bHApofJV+Q6iv5fr/rx4+LlYnSxN4KMz0wyRg9KWVQ== 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=e21693924acb47fdf8a5b50705f6e2518af47d19 commit e21693924acb47fdf8a5b50705f6e2518af47d19 Author: Dimitry Andric AuthorDate: 2022-07-19 19:45:54 +0000 Commit: Dimitry Andric CommitDate: 2022-07-23 08:56:46 +0000 Suppress unused variable warning in if_mwl.c With clang 15, the following -Werror warning is produced: sys/dev/mwl/if_mwl.c:3445: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 debugging. Mark the variable as potentially unused, to suppress the warning. MFC after: 3 days (cherry picked from commit 52c80d495a1b9dc756452ebcbb945906ea3cf23a) --- sys/dev/mwl/if_mwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mwl/if_mwl.c b/sys/dev/mwl/if_mwl.c index b2e6747f10c8..07af5258c450 100644 --- a/sys/dev/mwl/if_mwl.c +++ b/sys/dev/mwl/if_mwl.c @@ -3447,7 +3447,7 @@ mwl_tx_draintxq(struct mwl_softc *sc, struct mwl_txq *txq) { struct ieee80211_node *ni; struct mwl_txbuf *bf; - u_int ix; + u_int ix __unused; /* * NB: this assumes output has been stopped and