2
0
Эх сурвалжийг харах

W32 VS project: corrected compiler settings

VS detects value truncation at run-time even if explicit cast is used.
This breaks legitimate code execution.

Unfortunately there is no way to disable it only for explicit casts
so disabling this feature completely.

Also disabled some warnings which are not real warnings, but
informational messages.
Evgeny Grin (Karlson2k) 2 жил өмнө
parent
commit
a4b7990e5b

+ 2 - 1
w32/common/common-build-settings.props

@@ -29,8 +29,9 @@
       <WarningLevel Condition="'%(ClCompile.ExternalWarningLevel)' == ''">Level4</WarningLevel>
       <ExternalWarningLevel>Level3</ExternalWarningLevel>
       <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <DisableSpecificWarnings>4996;4820;4127;5045</DisableSpecificWarnings>
+      <DisableSpecificWarnings>4996;4820;4127;5045;4711;4710</DisableSpecificWarnings>
       <TreatSpecificWarningsAsErrors>4013</TreatSpecificWarningsAsErrors>
+      <SmallerTypeCheck>false</SmallerTypeCheck>
       <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
       <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
       <LanguageStandard_C Condition="'%(ClCompile.LanguageStandard_C)' != ''">stdc17</LanguageStandard_C>