tests/fusefs: Suppress false warning from GCC.

GCC complains that DNAME in the inval_entry_below_root test is not
used, but EXPECT_LOOKUP() does pass DNAME to strcmp in an internal
lambda function.

Reviewed by:	asomers
Differential Revision:	https://reviews.freebsd.org/D40661
This commit is contained in:
John Baldwin 2023-06-20 12:34:39 -07:00
parent e65868ddd4
commit 062de1c5df

View File

@ -80,7 +80,9 @@ CXXWARNFLAGS.readdir.cc+= -Wno-cast-align
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 80000
CXXWARNFLAGS+= -Wno-class-memaccess
.endif
# Supress warnings about deprecated implicit copy constructors in gtest.
# Suppress false warning about set but unused DNAME in inval_entry_below_root
CXXWARNFLAGS.gcc+= -Wno-unused-but-set-variable
# Suppress warnings about deprecated implicit copy constructors in gtest.
CXXWARNFLAGS+= -Wno-deprecated-copy
CXXFLAGS+= -I${SRCTOP}/tests
CXXFLAGS+= -I${FUSEFS}