diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-07-19 19:17:03 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2022-07-20 15:13:48 +0000 |
commit | 218634014374de0032fcdd56656ed6b3650634d2 (patch) | |
tree | 840c5fa20088c3bb2120bb12fe70506a034c6771 | |
parent | a795c6e9344406e055d38bd94eac40e8f815a0ef (diff) | |
download | src-218634014374de0032fcdd56656ed6b3650634d2.tar.gz src-218634014374de0032fcdd56656ed6b3650634d2.zip |
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
-rw-r--r-- | sys/dev/malo/if_malo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |