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:
parent
9e1810ca9d
commit
b3d0070b14
@ -140,6 +140,7 @@ if test "x$CFLAGS" = "x" ; then
|
||||
fi
|
||||
JE_CFLAGS_APPEND([-Wall])
|
||||
JE_CFLAGS_APPEND([-Werror=declaration-after-statement])
|
||||
JE_CFLAGS_APPEND([-Wshorten-64-to-32])
|
||||
JE_CFLAGS_APPEND([-pipe])
|
||||
JE_CFLAGS_APPEND([-g3])
|
||||
elif test "x$je_cv_msvc" = "xyes" ; then
|
||||
|
Loading…
Reference in New Issue
Block a user