diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-06-19 00:43:49 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-06-21 05:42:27 +0200 |
commit | f562d494b09dd889ac7600cfd22e4d7124e8656c (patch) | |
tree | 8c3d6b6fec4a95c663fd68c6663b9ac5d517e7c2 /configure | |
parent | 713d96199096680f9593e0d2cc53657eb8d27b46 (diff) | |
download | qpdf-f562d494b09dd889ac7600cfd22e4d7124e8656c.tar.zst |
configure: add --enable-int-warnings
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -767,6 +767,7 @@ enable_largefile enable_ld_version_script with_buildrules enable_werror +enable_int_warnings enable_test_compare_images enable_show_failed_test_output with_docbook_xsl @@ -1438,6 +1439,8 @@ Optional Features: --enable-ld-version-script enable linker version script (default is enabled) --enable-werror whether to treat warnings as errors (default is no) + --enable-int-warnings whether to turn on integer type warnings (default is + no) --enable-test-compare-images whether to compare images in test suite; disabled by default, enabling requires ghostscript and tiffcmp @@ -16683,6 +16686,33 @@ else $as_echo "no" >&6; } fi +if test "$BUILDRULES" = "msvc"; then + try_flags="-W3" +else + try_flags="-Wconversion -Wsign-conversion" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to use $try_flags" >&5 +$as_echo_n "checking for whether to use $try_flags... " >&6; } +# Check whether --enable-int-warnings was given. +if test "${enable_int_warnings+set}" = set; then : + enableval=$enable_int_warnings; if test "$enableval" = "yes"; then + qpdf_INT_WARNINGS=1; + else + qpdf_INT_WARNINGS=0; + fi +else + qpdf_INT_WARNINGS=0 +fi + +if test "$qpdf_INT_WARNINGS" = "1"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + WFLAGS="$WFLAGS $try_flags" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + # Check whether --enable-test-compare-images was given. if test "${enable_test_compare_images+set}" = set; then : |