We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-Wthread-safety-negative
-Wthread-safety-beta
1 parent af3afd0 commit 163b8f6Copy full SHA for 163b8f6
1 file changed
cmake/compileroptions.cmake
@@ -165,6 +165,12 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
165
# this is reported even when it is unnecessary i.e. -Wswitch-enum warnings have been mitigated
166
add_compile_options_safe(-Wno-switch-default)
167
168
+ if(USE_LIBCXX)
169
+ # these are experimental warnings which might produce false positives
170
+ add_compile_options_safe(-Wno-thread-safety-negative)
171
+ add_compile_options_safe(-Wno-thread-safety-beta)
172
+ endif()
173
+
174
# warnings we are currently not interested in
175
add_compile_options(-Wno-four-char-constants)
176
add_compile_options(-Wno-weak-vtables)
0 commit comments