HomeFreeBSD

Suppress unused variable warning in ip_dummynet.c

Description

Suppress unused variable warning in ip_dummynet.c

With clang 15, the following -Werror warning is produced:

sys/netpfil/ipfw/ip_dummynet.c:802:6: error: variable 'n' set but not used [-Werror,-Wunused-but-set-variable]
        int n = 0; /* only for stats */
            ^

Here, 'n' 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:43 PM
Parents
rG3dbe05f61b65: Suppress unused variable warning in mfi.c
Branches
Unknown
Tags
Unknown