summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2026-01-02 21:29:05 +0100
committerDimitry Andric <dim@FreeBSD.org>2026-01-06 13:30:57 +0100
commit496fce83a59d40a261dce57890d25148ea4e81d3 (patch)
tree1d354a1729d6347f5a5e1ca8c0cc53d4546c72c6
parent57f1d519e02d60c6d50f81aa6098a04a92152ab3 (diff)
bsd.sys.mk: suppress another gcc warning for libc++
Similar to base 63d1c3c43690, 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 62a7fdc13ab45b48977424ef77bbc0f11f601e39)
-rw-r--r--share/mk/bsd.sys.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index e3401bb35e77..aa72d66eca94 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -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