Browse Source

Added compile flags -Wstring-conversion and -Wliteral-conversion for clang++

pipelines/353213535
eidheim 4 years ago
parent
commit
a8169628c2
  1. 2
      CMakeLists.txt

2
CMakeLists.txt

@ -39,7 +39,7 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_compile_options(-Wno-cpp)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options("-Wno-#warnings")
add_compile_options(-Wthread-safety -Wno-deprecated)
add_compile_options(-Wthread-safety -Wno-deprecated -Wstring-conversion -Wliteral-conversion)
endif()
if(APPLE)

Loading…
Cancel
Save