]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-9566: Silence tcl warnings
authorSegev Finer <segev208@gmail.com>
Thu, 29 Jun 2017 18:12:25 +0000 (21:12 +0300)
committerSegev Finer <segev208@gmail.com>
Thu, 29 Jun 2017 18:12:25 +0000 (21:12 +0300)
PCbuild/tcl.vcxproj

index 3dfd155810ff7b99ac8a7dded97763d9dccbbe78..193171347575787885ca608098b4f015529537a0 100644 (file)
@@ -65,6 +65,7 @@
     <TclOpts Condition="$(Configuration) == 'Debug'">symbols,msvcrt</TclOpts>
     <TclDirs>INSTALLDIR="$(OutDir.TrimEnd(`\`))" INSTALL_DIR="$(OutDir.TrimEnd(`\`))"</TclDirs>
     <DebugFlags Condition="'$(Configuration)' == 'Debug'">DEBUGFLAGS="-wd4456 -wd4457 -wd4458 -wd4459 -wd4996"</DebugFlags>
+       <WarningsFlags>WARNINGS="-W3 -wd4311 -wd4312"</WarningsFlags>
     <NMakeBuildCommandLine>setlocal
 @(ExpectedOutputs->'if not exist "%(FullPath)" goto build','
 ')
@@ -72,8 +73,8 @@ goto :eof
 :build
 set VCINSTALLDIR=$(VCInstallDir)
 cd /D "$(tclDir)win"
-nmake -f makefile.vc MACHINE=$(TclMachine) OPTS=$(TclOpts) $(TclDirs) $(DebugFlags) core shell dlls
-nmake -f makefile.vc MACHINE=$(TclMachine) OPTS=$(TclOpts) $(TclDirs) $(DebugFlags) install-binaries install-libraries
+nmake -f makefile.vc MACHINE=$(TclMachine) OPTS=$(TclOpts) $(TclDirs) $(DebugFlags) $(WarningsFlags) core shell dlls
+nmake -f makefile.vc MACHINE=$(TclMachine) OPTS=$(TclOpts) $(TclDirs) $(DebugFlags) $(WarningsFlags) install-binaries install-libraries
 </NMakeBuildCommandLine>
   </PropertyGroup>