[Python-checkins] bpo-47230: Silence compiler warnings on Windows from zlib 1.2.12 (GH-32337)

zooba webhook-mailer at python.org
Tue Apr 5 15:03:41 EDT 2022


https://github.com/python/cpython/commit/944f09adfcc59f54432ac2947cf95f3465d90e1e
commit: 944f09adfcc59f54432ac2947cf95f3465d90e1e
branch: main
author: Jeremy Kloth <jeremy.kloth at gmail.com>
committer: zooba <steve.dower at microsoft.com>
date: 2022-04-05T20:03:17+01:00
summary:

bpo-47230: Silence compiler warnings on Windows from zlib 1.2.12 (GH-32337)

files:
M PCbuild/pythoncore.vcxproj

diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
index 9894e37cb78e1..4fc6aa80f6fae 100644
--- a/PCbuild/pythoncore.vcxproj
+++ b/PCbuild/pythoncore.vcxproj
@@ -534,13 +534,15 @@
     <!-- BEGIN deepfreeze -->
     <ClCompile Include="..\Python\deepfreeze\deepfreeze.c" />
     <!-- END deepfreeze -->
-    </ItemGroup>
+  </ItemGroup>
   <ItemGroup Condition="$(IncludeExternals)">
     <ClCompile Include="..\Modules\zlibmodule.c" />
     <ClCompile Include="$(zlibDir)\adler32.c" />
     <ClCompile Include="$(zlibDir)\compress.c" />
     <ClCompile Include="$(zlibDir)\crc32.c" />
-    <ClCompile Include="$(zlibDir)\deflate.c" />
+    <ClCompile Include="$(zlibDir)\deflate.c">
+      <DisableSpecificWarnings>4244</DisableSpecificWarnings>
+    </ClCompile>
     <ClCompile Include="$(zlibDir)\infback.c" />
     <ClCompile Include="$(zlibDir)\inffast.c" />
     <ClCompile Include="$(zlibDir)\inflate.c" />



More information about the Python-checkins mailing list