commit a4b7990e5bb827521b43689d690a97aa8d496ddd
parent 7272f8b0bd8e263e511bffeeec162901683b94b3
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Tue, 12 Sep 2023 15:31:03 +0300
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.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/w32/common/common-build-settings.props b/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>