2
1
mirror of https://github.com/qpdf/qpdf.git synced 2025-01-09 09:50:28 +00:00

Changing default warnings for MSVC

Enable C4996, deprecation/security warnings, which helps for Windows 8
certification.  Stop enabling C4267, which was warning about
conversions between size_t and other integer types.
This commit is contained in:
Jay Berkenbilt 2013-02-25 10:28:45 -05:00
parent 7276ab934d
commit babb47948a

View File

@ -179,10 +179,12 @@ AC_SUBST(WFLAGS)
AC_SUBST(CXXWFLAGS) AC_SUBST(CXXWFLAGS)
qpdf_USE_EXTRA_WARNINGS=0 qpdf_USE_EXTRA_WARNINGS=0
if test "$BUILDRULES" = "msvc"; then if test "$BUILDRULES" = "msvc"; then
dnl /w14267 makes warning 4267 a level 1 warning. This warning reports dnl /w14996 makes warning 4996 a level 1 warning. This warning
dnl potential issues between size_t, off_t, and non-compatible integer dnl reports on functions that Microsoft considers unsafe or
dnl types. dnl deprecated. Removing these warnings helps people who want to
try_flags="/w14267" dnl write applications based on qpdf that can be Windows 8
dnl certified.
try_flags="/w14996"
else else
try_flags="-Wall" try_flags="-Wall"
fi fi