[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 19:37:23 EDT 2022


https://github.com/python/cpython/commit/a4c7752f3e00b75fd1e4603458b8c77a9fa3d4cb
commit: a4c7752f3e00b75fd1e4603458b8c77a9fa3d4cb
branch: 3.9
author: Jeremy Kloth <jeremy.kloth at gmail.com>
committer: zooba <steve.dower at microsoft.com>
date: 2022-04-06T00:37:16+01:00
summary:

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

(cherry picked from commit 944f09adfcc59f54432ac2947cf95f3465d90e1e)

Co-authored-by: Jeremy Kloth <jeremy.kloth at gmail.com>

files:
M PCbuild/pythoncore.vcxproj

diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
index 9a40905fe01f8..c899a3b901018 100644
--- a/PCbuild/pythoncore.vcxproj
+++ b/PCbuild/pythoncore.vcxproj
@@ -500,7 +500,9 @@
     <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