bsd.sys.mk: suppress another gcc warning for libc++
Some checks are pending
Cross-build Kernel / amd64 ubuntu-20.04 (clang-12) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-20.04 (clang-12) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-13) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-13) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-22.04 (clang-14) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-14) (push) Waiting to run

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

(cherry picked from commit 62a7fdc13a)
This commit is contained in:
Dimitry Andric 2026-01-02 21:29:05 +01:00
parent 57f1d519e0
commit 496fce83a5

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