mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
parent
e80b3c2ff2
commit
03b1a31ff3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user