]> 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>
Wed, 20 Jul 2022 19:10:43 +0000 (21:10 +0200)
commit3c9a0112bae6408892123b04a6ba5c6ee0780937
tree81a9f80af0f58580ad9323b8e6225a43482e600f
parent64741244fc4588eefd954948b77ddf2706448ecd
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
sys/conf/files