From eb589def71077aee943c49928433578cca55a1e3 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Thu, 18 Jul 2019 08:34:52 +0300 Subject: [PATCH] Added some additional warning flags for gcc. Disabled them by default until I get the new warnings fixed. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c320a79..9b47e13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -136,7 +136,7 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}\ -O0 -g") if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") - set (CXX_FLAGS_WARNING "-Wall -Wextra -Werror -Wdouble-promotion -Wfloat-conversion") + set (CXX_FLAGS_WARNING "-Wall -Wextra -Werror -Wdouble-promotion -Wfloat-conversion") # TODO: -Wshadow -Wconversion elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel") #MV: -Werror-all disabled because produces cryptical messages preventing compilation. #TODO: Would be good to find an optimal set of warning flags.