]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-30726: Fix elementtree warnings on Windows due to expat upgrade (#2319)
authorSegev Finer <segev208@gmail.com>
Fri, 23 Jun 2017 10:45:01 +0000 (13:45 +0300)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 23 Jun 2017 10:45:01 +0000 (12:45 +0200)
* bpo-30726: Fix elementtree warnings on Windows

Caused by usage of `getenv` which should be safe. And a few integer
truncations which should also be ok.

* bpo-30726: Don't ignore libexpat warnings which haypo intends to fix upstream

PCbuild/_elementtree.vcxproj

index 138d7b8a5de473cd2388fa96533bd5546cbb43ce..639ba479db578665aae9e55f6166e14c95159ce7 100644 (file)
@@ -62,7 +62,7 @@
   <ItemDefinitionGroup>
     <ClCompile>
       <AdditionalIncludeDirectories>..\Modules\expat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>USE_PYEXPAT_CAPI;XML_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;USE_PYEXPAT_CAPI;XML_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     </ClCompile>
     <Link>
       <BaseAddress>0x1D100000</BaseAddress>