diff --git a/cmake/warnings.cmake b/cmake/warnings.cmake index ad9cfb086..09140717f 100644 --- a/cmake/warnings.cmake +++ b/cmake/warnings.cmake @@ -50,9 +50,7 @@ add_warning(all) add_warning(extra) add_warning(pedantic) add_warning(error) # treat all warnings as errors -if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_warning(strict-overflow=2) -elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU") +if(CMAKE_CXX_COMPILER_ID MATCHES "GNU") add_warning(strict-overflow=1) endif() add_warning(suggest-override) @@ -79,15 +77,10 @@ add_warning(sizeof-array-argument) add_warning(switch-bool) add_warning(tautological-compare) add_warning(trampolines) -no_warning(c++17-extensions) # TODO: these warnings are not enabled by default, but we consider them as useful and good to enable in the future -no_warning(implicit-int-conversion) -no_warning(implicit-float-conversion) -no_warning(unused-member-function) no_warning(old-style-cast) no_warning(non-virtual-dtor) no_warning(float-conversion) no_warning(sign-conversion) -no_warning(shorten-64-to-32) no_warning(padded) no_warning(missing-noreturn) \ No newline at end of file