Skip to content

Commit 3b547bf

Browse files
committed
bsd.sys.mk: Add -Wno-error=character-conversion for Clang 21+
This is triggered by every file that uses gtest-printers.h. See google/googletest#4762. MFC after: 3 days
1 parent 277772d commit 3b547bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

share/mk/bsd.sys.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter
9393
# Similar to gcc >= 8.1 -Wno-error=cast-function-type below
9494
CWARNFLAGS.clang+= -Wno-error=cast-function-type-mismatch
9595
.endif
96+
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 210000
97+
# Until gtest is updated: https://github.com/google/googletest/issues/4762
98+
CXXWARNFLAGS.clang+= -Wno-error=character-conversion
99+
.endif
96100
.endif # WARNS <= 6
97101
.if ${WARNS} <= 3
98102
CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-unused-value\

0 commit comments

Comments
 (0)