[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 02/02: W32 VS project: corrected compiler settings
From: |
gnunet |
Subject: |
[libmicrohttpd] 02/02: W32 VS project: corrected compiler settings |
Date: |
Tue, 12 Sep 2023 14:31:13 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit a4b7990e5bb827521b43689d690a97aa8d496ddd
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Sep 12 15:31:03 2023 +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.
---
w32/common/common-build-settings.props | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/w32/common/common-build-settings.props
b/w32/common/common-build-settings.props
index 4a702d19..a318184f 100644
--- 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>
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.