git: 062de1c5df0b - main - tests/fusefs: Suppress false warning from GCC.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Jun 2023 19:39:15 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=062de1c5df0ba9b9e9b703e649a9b48faa44b198 commit 062de1c5df0ba9b9e9b703e649a9b48faa44b198 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-06-20 19:34:39 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-06-20 19:34:39 +0000 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 --- tests/sys/fs/fusefs/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/sys/fs/fusefs/Makefile b/tests/sys/fs/fusefs/Makefile index df3753967603..9938e5cf2a54 100644 --- a/tests/sys/fs/fusefs/Makefile +++ b/tests/sys/fs/fusefs/Makefile @@ -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}