Compile with -Wshorten-64-to-32.

This will prevent accidental creation of potential integer truncation
bugs when developing on LP64 systems.
This commit is contained in:
Jason Evans 2016-02-24 13:00:40 -08:00
parent 9e1810ca9d
commit b3d0070b14

View File

@ -140,6 +140,7 @@ if test "x$CFLAGS" = "x" ; then
fi fi
JE_CFLAGS_APPEND([-Wall]) JE_CFLAGS_APPEND([-Wall])
JE_CFLAGS_APPEND([-Werror=declaration-after-statement]) JE_CFLAGS_APPEND([-Werror=declaration-after-statement])
JE_CFLAGS_APPEND([-Wshorten-64-to-32])
JE_CFLAGS_APPEND([-pipe]) JE_CFLAGS_APPEND([-pipe])
JE_CFLAGS_APPEND([-g3]) JE_CFLAGS_APPEND([-g3])
elif test "x$je_cv_msvc" = "xyes" ; then elif test "x$je_cv_msvc" = "xyes" ; then