forked from ak-fortuna/fortuna
cmake: add more diagnostic warning flags
This commit is contained in:
parent
e2f540664b
commit
226f264fcd
|
@ -95,6 +95,8 @@ if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Og")
|
||||
endif(NOT CMAKE_CXX_FLAGS MATCHES "-Og")
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wmismatched-new-delete -Wmismatched-dealloc -Wterminate -Wuseless-cast -Wold-style-cast -Wrange-loop-construct -Wredundant-move -Wpessimizing-move -Wnon-virtual-dtor -Wdeprecated-copy -Wsuggest-final-types -Wsuggest-override -Wextra-semi")
|
||||
|
||||
if(NOT VALGRIND)
|
||||
if(SAN)
|
||||
message(STATUS "SAN=ON, building with sanitize flags")
|
||||
|
|
Loading…
Reference in New Issue