Add -Wshorten-64-to-32 to configure.ac

This commit is contained in:
Alexis La Goutte 2014-05-31 17:11:48 +02:00 committed by Tatsuhiro Tsujikawa
parent f0f5342cd4
commit 6e316e269f
1 changed files with 1 additions and 0 deletions

View File

@ -454,6 +454,7 @@ if test "x$werror" != "xno"; then
AX_CHECK_COMPILE_FLAG([-Waddress], [CFLAGS="$CFLAGS -Waddress"])
AX_CHECK_COMPILE_FLAG([-Wattributes], [CFLAGS="$CFLAGS -Wattributes"])
AX_CHECK_COMPILE_FLAG([-Wdiv-by-zero], [CFLAGS="$CFLAGS -Wdiv-by-zero"])
AX_CHECK_COMPILE_FLAG([-Wshorten-64-to-32], [CFLAGS="$CFLAGS -Wshorten-64-to-32"])
# Only work with Clang for the moment
AX_CHECK_COMPILE_FLAG([-Wheader-guard], [CFLAGS="$CFLAGS -Wheader-guard"])