HomeFreeBSD

Fix unused variable warning in acpica's nsaccess.c

Description

Fix unused variable warning in acpica's nsaccess.c

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

sys/contrib/dev/acpica/components/namespace/nsaccess.c:452:29: error: variable 'NumCarats' set but not used [-Werror,-Wunused-but-set-variable]
    UINT32                  NumCarats;
                            ^

Here, 'NumCarats' is a variable that is only used when debugging. Since
acpica is contributed code, suppress the warning with a compile flag.

MFC after: 3 days

Details

Provenance
dimAuthored on Jul 20 2022, 7:10 PM
Parents
rG64741244fc45: Fix unused variable warning in if_alc.c
Branches
Unknown
Tags
Unknown