Skip to content

Commit 6b5785c

Browse files
committed
compileroptions.cmake: disabled -Wthread-safety-negative and -Wthread-safety-beta Clang warnings
1 parent 83542b5 commit 6b5785c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cmake/compileroptions.cmake

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

149+
# these are experimental warning which might produce false positives
150+
add_compile_options_safe(-Wno-thread-safety-negative)
151+
add_compile_options_safe(-Wno-thread-safety-beta)
152+
149153
# warnings we are currently not interested in
150154
add_compile_options(-Wno-four-char-constants)
151155
add_compile_options(-Wno-weak-vtables)

0 commit comments

Comments
 (0)