diff options
author | Jay Berkenbilt <ejb@ql.org> | 2013-02-25 16:28:45 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2013-03-04 22:45:15 +0100 |
commit | babb47948a408ebad12c452ba3fdd78782360167 (patch) | |
tree | 239c1fb79b9df27475b6d950c6dc6c0c24316b3d /configure.ac | |
parent | 7276ab934d192627c72720ae1378de93edd9e8c7 (diff) | |
download | qpdf-babb47948a408ebad12c452ba3fdd78782360167.tar.zst |
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.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index d8f3b6ba..c423b086 100644 --- a/configure.ac +++ b/configure.ac @@ -179,10 +179,12 @@ AC_SUBST(WFLAGS) AC_SUBST(CXXWFLAGS) qpdf_USE_EXTRA_WARNINGS=0 if test "$BUILDRULES" = "msvc"; then - dnl /w14267 makes warning 4267 a level 1 warning. This warning reports - dnl potential issues between size_t, off_t, and non-compatible integer - dnl types. - try_flags="/w14267" + dnl /w14996 makes warning 4996 a level 1 warning. This warning + dnl reports on functions that Microsoft considers unsafe or + dnl deprecated. Removing these warnings helps people who want to + dnl write applications based on qpdf that can be Windows 8 + dnl certified. + try_flags="/w14996" else try_flags="-Wall" fi |