bsd.sys.mk: suppress some clang warnings for C++ for >= 19

I just tried building with system clang on one of my Linux systems which
happens to be version 19, and these warning suppressions are needed for
that version too: same errors as in the original commit.

Reviewed by:	imp
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D56874
This commit is contained in:
Alex Richardson
2026-05-26 12:37:06 -07:00
parent 77fd9e0cea
commit 004b5935a6
-2
View File
@@ -92,8 +92,6 @@ CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 190000 .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 190000
# Similar to gcc >= 8.1 -Wno-error=cast-function-type below # Similar to gcc >= 8.1 -Wno-error=cast-function-type below
CWARNFLAGS.clang+= -Wno-error=cast-function-type-mismatch CWARNFLAGS.clang+= -Wno-error=cast-function-type-mismatch
.endif
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 210000
CXXWARNFLAGS.clang+= -Wno-c++20-extensions CXXWARNFLAGS.clang+= -Wno-c++20-extensions
CXXWARNFLAGS.clang+= -Wno-c++23-lambda-attributes CXXWARNFLAGS.clang+= -Wno-c++23-lambda-attributes
CXXWARNFLAGS.clang+= -Wno-nullability-completeness CXXWARNFLAGS.clang+= -Wno-nullability-completeness