projects/vstudio: enthusiastic warnings

The commit removes the three compile warning options from the individual project
files into the zlib.props globals (this should probably be renamed in 1.7).  It
increases the warning level from 4 to All and adds a list of the warnings which
need to be turned off.  This is semi-documentary; the intent is to tell users of
libpng which warnings have been examined and judged non-fixable at present.

The warning about structure padding *IS* fixable, but it is a signficant change
(moving structure members around).  It is currently partially fixed in 1.7, but
only partially.

Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
John Bowler
2016-06-22 17:40:06 -07:00
parent 21d9e6e0fb
commit e5d468ea9c
8 changed files with 86 additions and 67 deletions

View File

@@ -41,5 +41,18 @@
test it:
-->
<WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport>
<!-- The following lines provide a global (solution level) control of the
warnings issued by the compiler, these are used in the individual
project files (*/*.vcxproj) with, for zlib, some extra disables.
Different versions of Visual Studio may require different settings,
these settings work with Visual Studio 2013. Just set
TreatWarningAsError to false to check the build without failing on
errors.
-->
<WarningLevel>EnableAllWarnings</WarningLevel>
<TreatWarningAsError>true</TreatWarningAsError>
<DisableSpecificWarnings>4255;4668;4710;4711;4746;4820;4996</DisableSpecificWarnings>
</PropertyGroup>
</Project>