Skip to content
Snippets Groups Projects
Commit 26b97bca authored by Martin Wölzer's avatar Martin Wölzer
Browse files

cmake/compiler_flags.cmake: disabled warning for weak-vtables in clang

parent ef1e00ff
No related branches found
No related tags found
1 merge request!24Create release v.0.6.0
......@@ -33,7 +33,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
endif()
set(libClaPP_TEST_CXX_PEDANTIC_COMPILE_OPTIONS ${libClaPP_CXX_PEDANTIC_COMPILE_OPTIONS})
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
list(APPEND libClaPP_CXX_PEDANTIC_COMPILE_OPTIONS -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded -Werror -pedantic-errors)
list(APPEND libClaPP_CXX_PEDANTIC_COMPILE_OPTIONS -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded -Wno-weak-vtables -Werror -pedantic-errors)
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "10.0.0")
#before clang-10, it issues a warning if a range-based-for loop (of const ref) is used.
list(APPEND libClaPP_CXX_PEDANTIC_COMPILE_OPTIONS -Wno-range-loop-analysis)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment