]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix unused variable warning in acpica's nsaccess.c
authorDimitry Andric <dim@FreeBSD.org>
Wed, 20 Jul 2022 19:10:43 +0000 (21:10 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Sat, 23 Jul 2022 08:56:45 +0000 (10:56 +0200)
commitf64d11ddb6564ff1542b87cce38b60df6ebd3ee2
tree4aedc840ef329360c66eea47f29c5e52b085a958
parentc3361a4b90b60093ea0c4ab197e462299b3d3f45
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

(cherry picked from commit 3c9a0112bae6408892123b04a6ba5c6ee0780937)
sys/conf/files