Commit babb47948a408ebad12c452ba3fdd78782360167
1 parent
7276ab93
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.
Showing
1 changed file
with
6 additions
and
4 deletions
configure.ac
| ... | ... | @@ -179,10 +179,12 @@ AC_SUBST(WFLAGS) |
| 179 | 179 | AC_SUBST(CXXWFLAGS) |
| 180 | 180 | qpdf_USE_EXTRA_WARNINGS=0 |
| 181 | 181 | if test "$BUILDRULES" = "msvc"; then |
| 182 | - dnl /w14267 makes warning 4267 a level 1 warning. This warning reports | |
| 183 | - dnl potential issues between size_t, off_t, and non-compatible integer | |
| 184 | - dnl types. | |
| 185 | - try_flags="/w14267" | |
| 182 | + dnl /w14996 makes warning 4996 a level 1 warning. This warning | |
| 183 | + dnl reports on functions that Microsoft considers unsafe or | |
| 184 | + dnl deprecated. Removing these warnings helps people who want to | |
| 185 | + dnl write applications based on qpdf that can be Windows 8 | |
| 186 | + dnl certified. | |
| 187 | + try_flags="/w14996" | |
| 186 | 188 | else |
| 187 | 189 | try_flags="-Wall" |
| 188 | 190 | fi | ... | ... |