The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=b50d6ddc0fb58548c24f9f515a432a426f0b4e85
commit b50d6ddc0fb58548c24f9f515a432a426f0b4e85 Author: Alex Richardson <[email protected]> AuthorDate: 2026-05-26 19:37:06 +0000 Commit: Dimitry Andric <[email protected]> CommitDate: 2026-05-29 22:59:37 +0000 bsd.sys.mk: also suppress clang -Wc++1[47]-extensions warnings for >= 19 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 -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 02b99788ecb8..e2ad7bfcfb6c 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -91,6 +91,8 @@ CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 190000 # Similar to gcc >= 8.1 -Wno-error=cast-function-type below CWARNFLAGS.clang+= -Wno-error=cast-function-type-mismatch +CXXWARNFLAGS.clang+= -Wno-c++14-extensions +CXXWARNFLAGS.clang+= -Wno-c++17-extensions CXXWARNFLAGS.clang+= -Wno-c++20-extensions CXXWARNFLAGS.clang+= -Wno-c++23-lambda-attributes CXXWARNFLAGS.clang+= -Wno-nullability-completeness
