Skip to content

Commit 3b89e2e

Browse files
committed
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.
1 parent c8fb58b commit 3b89e2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PCbuild/_elementtree.vcxproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
<ItemDefinitionGroup>
6363
<ClCompile>
6464
<AdditionalIncludeDirectories>..\Modules\expat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
65-
<PreprocessorDefinitions>USE_PYEXPAT_CAPI;XML_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
65+
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;USE_PYEXPAT_CAPI;XML_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
66+
<DisableSpecificWarnings>4244;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
6667
</ClCompile>
6768
<Link>
6869
<BaseAddress>0x1D100000</BaseAddress>

0 commit comments

Comments
 (0)