From 317df4c0254943549cc5fa4d230f04a86b99f659 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Thu, 4 Jul 2019 13:45:09 +0300 Subject: [PATCH] Re-enabled the check for implicit float-double-float conversions with gcc --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 51441b7..4ffb2b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -132,7 +132,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") 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.