HomeFreeBSD

Suppress unused variable warning in if_mwl.c

Description

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

Details

Provenance
dimAuthored on Jul 19 2022, 7:45 PM
Parents
rG5c329f0a4d32: Suppress unused variable warning in ip_dummynet.c
Branches
Unknown
Tags
Unknown