System : Introduce compiler warning C4458 with fixes

This commit is contained in:
Magne Sjaastad committed 2018-09-24 21:32:58 +02:00
1 parent 4009d4d63b
commit b2d055db63
7 files changed
+21 -26

No files matched your search

+1 -2
View File
@@ -283,7 +283,6 @@ 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
# warning C4456: declaration of 'sourceInfo' hides previous local declaration
# warning C4458: declaration of 'name' hides class member
# The following warning is generated over 800 times from a qwt header only using VS2015
# Disabling temporarily
@@ -292,7 +291,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")
set_target_properties(ResInsight PROPERTIES COMPILE_FLAGS "/W4 /wd4190 /wd4100 /wd4127 /wd4505 /wd4245 /wd4456")
endif()
#############################################################################