mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove VS 2019 warnings
This commit is contained in:
parent
1267ba64d4
commit
e31f2d2b50
@ -379,11 +379,12 @@ add_executable( ResInsight ${EXE_FILES})
|
|||||||
if (MSVC)
|
if (MSVC)
|
||||||
# The following warnings are supposed to be used in ResInsight, but temporarily disabled to avoid too much noise
|
# 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 C4245: 'return': conversion from 'int' to 'size_t', signed/unsigned mismatch
|
||||||
|
# warning C4005: Macro redefinition for math constants (M_PI, M_SQRT2 etc)
|
||||||
|
|
||||||
# If possible, the following command is supposed to be the final target
|
# 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")
|
||||||
|
|
||||||
set_target_properties(ResInsight PROPERTIES COMPILE_FLAGS "/W4 /wd4190 /wd4100 /wd4127 /wd4245")
|
set_target_properties(ResInsight PROPERTIES COMPILE_FLAGS "/W4 /wd4190 /wd4100 /wd4127 /wd4245 /wd4005")
|
||||||
if (CMAKE_CXX_COMPILER_VERSION LESS_EQUAL 19.14)
|
if (CMAKE_CXX_COMPILER_VERSION LESS_EQUAL 19.14)
|
||||||
# The following warning is generated over 800 times from a qwt header only using VS2015
|
# The following warning is generated over 800 times from a qwt header only using VS2015
|
||||||
# Disabling temporarily
|
# Disabling temporarily
|
||||||
|
@ -157,7 +157,7 @@ TEST( RiaProjectFileVersionTools, OrderKnownVersionStrings )
|
|||||||
|
|
||||||
QStringList sortedVersionList = versionStrings;
|
QStringList sortedVersionList = versionStrings;
|
||||||
{
|
{
|
||||||
qSort( sortedVersionList.begin(),
|
std::sort( sortedVersionList.begin(),
|
||||||
sortedVersionList.end(),
|
sortedVersionList.end(),
|
||||||
RiaProjectFileVersionTools::isCandidateVersionNewerThanOther );
|
RiaProjectFileVersionTools::isCandidateVersionNewerThanOther );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user