We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Clang
1 parent 0385244 commit bf97e11Copy full SHA for bf97e11
CMakeLists.txt
@@ -100,6 +100,11 @@ find_package(Threads)
100
if (UNIX)
101
add_compile_options(-Wall -Wpedantic -Wextra -Wno-unused-parameter)
102
103
+ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "21.0")
104
+ # See gtest: https://github.com/google/googletest/issues/4762
105
+ add_compile_options(-Wno-error=character-conversion)
106
+ endif ()
107
+
108
if (C_WARNINGS_AS_ERRORS)
109
add_compile_options($<$<COMPILE_LANGUAGE:C>:-Werror>)
110
endif (C_WARNINGS_AS_ERRORS)
0 commit comments