mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
System : Introduce compiler warning C4457 with fixes
This commit is contained in:
@@ -284,7 +284,6 @@ if (MSVC)
|
||||
# warning C4245: 'return': conversion from 'int' to 'size_t', signed/unsigned mismatch
|
||||
# warning C4456: declaration of 'sourceInfo' hides previous local declaration
|
||||
# warning C4458: declaration of 'name' hides class member
|
||||
# warning C4457: declaration of 'min' hides function parameter
|
||||
|
||||
# The following warning is generated over 800 times from a qwt header only using VS2015
|
||||
# Disabling temporarily
|
||||
@@ -293,7 +292,7 @@ if (MSVC)
|
||||
# If possible, the following command is supposed to be the final target
|
||||
# set_target_properties(ResInsight PROPERTIES COMPILE_FLAGS "/W4 /wd4190 /wd4100 /wd4127")
|
||||
|
||||
set_target_properties(ResInsight PROPERTIES COMPILE_FLAGS "/W4 /wd4190 /wd4100 /wd4127 /wd4505 /wd4245 /wd4456 /wd4458 /wd4457")
|
||||
set_target_properties(ResInsight PROPERTIES COMPILE_FLAGS "/W4 /wd4190 /wd4100 /wd4127 /wd4505 /wd4245 /wd4456 /wd4458")
|
||||
endif()
|
||||
|
||||
#############################################################################
|
||||
|
||||
Reference in New Issue
Block a user