-Werror-all disabled from Intel compiler flags
Because produces cryptical messages preventing compilation. The messages do not tell anything about the problem and are also at odds with some gcc specific pragma commands. If we can resolve these issues, we can turn it back.
This commit is contained in:
@@ -130,8 +130,11 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}\
|
|||||||
|
|
||||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
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")
|
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")\
|
||||||
set (CXX_FLAGS_WARNING "-Wall -Wextra -Werror-all -Wsign-conversion")
|
#MV: -Werror-all disabled because produces cryptical messages preventing compilation.
|
||||||
|
#TODO: Would be good to find an optimal set of warning flags.
|
||||||
|
#set (CXX_FLAGS_WARNING "-Wall -Wextra -Werror-all -Wsign-conversion")
|
||||||
|
set (CXX_FLAGS_WARNING "-Wall -Wextra -Wsign-conversion")
|
||||||
else()
|
else()
|
||||||
message(WARNING "Using an unknown compiler. Compilation warning flags were not set.")
|
message(WARNING "Using an unknown compiler. Compilation warning flags were not set.")
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user