Made use of clang's Thread Safety Analysis
This commit is contained in:
parent
39fb720aa9
commit
a743915d72
5 changed files with 153 additions and 40 deletions
|
|
@ -7,6 +7,9 @@ option(BUILD_TESTING "set ON to build library tests" OFF)
|
|||
|
||||
if(NOT MSVC)
|
||||
add_compile_options(-std=c++11 -Wall -Wextra -Wsign-conversion)
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
add_compile_options(-Wthread-safety)
|
||||
endif()
|
||||
else()
|
||||
add_compile_options(/W1)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue