mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
Silence VLA extension warnings in fusefs tests
Building tests/sys/fs/fusefs with clang 18 results the following warning: tests/sys/fs/fusefs/cache.cc:145:14: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension] 145 | uint8_t buf[bufsize]; | ^~~~~~~ Because we do not particularly care that this is a clang extension, suppress the warning. MFC after: 3 days
This commit is contained in:
parent
69c8025a49
commit
dc0b4094ab
|
@ -83,6 +83,10 @@ CXXWARNFLAGS+= -Wno-class-memaccess
|
||||||
CXXWARNFLAGS.gcc+= -Wno-unused-but-set-variable
|
CXXWARNFLAGS.gcc+= -Wno-unused-but-set-variable
|
||||||
# Suppress warnings about deprecated implicit copy constructors in gtest.
|
# Suppress warnings about deprecated implicit copy constructors in gtest.
|
||||||
CXXWARNFLAGS+= -Wno-deprecated-copy
|
CXXWARNFLAGS+= -Wno-deprecated-copy
|
||||||
|
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 180000
|
||||||
|
# clang 18.0.0 introduces a new warning about variable length arrays in C++.
|
||||||
|
CXXWARNFLAGS+= -Wno-vla-cxx-extension
|
||||||
|
.endif
|
||||||
CXXFLAGS+= -I${SRCTOP}/tests
|
CXXFLAGS+= -I${SRCTOP}/tests
|
||||||
CXXFLAGS+= -I${FUSEFS}
|
CXXFLAGS+= -I${FUSEFS}
|
||||||
CXXFLAGS+= -I${MOUNT}
|
CXXFLAGS+= -I${MOUNT}
|
||||||
|
|
Loading…
Reference in a new issue