Enable all warnings ("-Wall") for ApplicationCode directory on linux.

Allowing initializiation reordering and unused parameters for now since there
are a lots of them, and the code is harmless.
This commit is contained in:
Kristian Bendiksen 2020-04-01 08:20:52 +02:00
parent e80b3c2ff2
commit 03b1a31ff3

View File

@ -390,6 +390,11 @@ if(RESINSIGHT_ENABLE_PRECOMPILED_HEADERS)
endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set_target_properties(ResInsight PROPERTIES COMPILE_FLAGS "-Wall -Wno-unused-parameter -Wno-reorder -Wno-parentheses -Wno-switch")
endif()
if (MSVC)
# The following warnings are supposed to be used in ResInsight, but temporarily disabled to avoid too much noise
# warning C4245: 'return': conversion from 'int' to 'size_t', signed/unsigned mismatch