Skip to content

Commit 163b8f6

Browse files
committed
compileroptions.cmake: disabled -Wthread-safety-negative and -Wthread-safety-beta Clang warnings with libc++
1 parent af3afd0 commit 163b8f6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cmake/compileroptions.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
165165
# this is reported even when it is unnecessary i.e. -Wswitch-enum warnings have been mitigated
166166
add_compile_options_safe(-Wno-switch-default)
167167

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+
168174
# warnings we are currently not interested in
169175
add_compile_options(-Wno-four-char-constants)
170176
add_compile_options(-Wno-weak-vtables)

0 commit comments

Comments
 (0)