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
This commit is contained in:
Dimitry Andric 2022-07-19 21:45:54 +02:00
parent 5c329f0a4d
commit 52c80d495a

View File

@ -3442,7 +3442,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