bsd.sys.mk: suppress another gcc warning for libc++

Similar to base 63d1c3c436, suppress -Wc++20-extensions for gcc.
Otherwise libc++ headers will lead to many -Werror warnings, due to our
use of -Wsystem-headers, which is not officially supported upstream.

MFC after:	3 days
This commit is contained in:
Dimitry Andric
2026-01-02 21:29:05 +01:00
parent a6afa194f3
commit 62a7fdc13a
+2 -1
View File
@@ -244,7 +244,8 @@ CWARNFLAGS+= -Wno-error=overflow
.if ${COMPILER_VERSION} >= 120100
# These warnings are raised by headers in libc++ so are disabled
# globally for all C++
CXXWARNFLAGS+= -Wno-literal-suffix \
CXXWARNFLAGS+= -Wno-literal-suffix \
-Wno-c++20-extensions \
-Wno-error=unknown-pragmas
.endif