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

(cherry picked from commit 52c80d495a1b9dc756452ebcbb945906ea3cf23a)

Details

Provenance
dimAuthored on Jul 19 2022, 7:45 PM
Parents
rGa6a9c025eefa: Adjust nvd_{load,unload}() definitions to avoid clang 15 warnings
Branches
Unknown
Tags
Unknown