This commit is contained in:
Siarhei Fedartsou 2022-09-02 16:13:46 +02:00
parent 6bffa090bb
commit 804a70a54d

View File

@ -72,6 +72,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
function(add_cxx_compile_options option)
add_compile_options("$<$<STREQUAL:$<TARGET_PROPERTY:LINKER_LANGUAGE>,CXX>:${option}>")
endfunction()
add_compile_definitions("--Wno-#warnings")
add_cxx_compile_options(-Wstrict-overflow=1)
add_cxx_compile_options(-Wduplicated-cond)
add_cxx_compile_options(-Wdisabled-optimization)