git: 7f421c7c9c1a - stable/14 - bsd.sys.mk: also suppress gcc -Wc++1[47]-extensions warnings for >= 12
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 30 May 2026 16:06:13 UTC
The branch stable/14 has been updated by dim:
URL: https://cgit.FreeBSD.org/src/commit/?id=7f421c7c9c1a28aadf4b3d3b10bf992570166174
commit 7f421c7c9c1a28aadf4b3d3b10bf992570166174
Author: Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2026-05-30 16:05:16 +0000
Commit: Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2026-05-30 16:05:16 +0000
bsd.sys.mk: also suppress gcc -Wc++1[47]-extensions warnings for >= 12
This is a direct commit to stable/14, which does not yet default to
C++17 for most in-tree programs. In some cases, this would trigger gcc
-Wc++1[47]-extensions warnings with libc++ 21.
---
share/mk/bsd.sys.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index e2ad7bfcfb6c..f00b7f679f4a 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -241,6 +241,8 @@ CWARNFLAGS+= -Wno-error=overflow
# These warnings are raised by headers in libc++ so are disabled
# globally for all C++
CXXWARNFLAGS+= -Wno-literal-suffix \
+ -Wno-c++14-extensions \
+ -Wno-c++17-extensions \
-Wno-c++20-extensions \
-Wno-error=unknown-pragmas
.endif