commit | b3d0070b1495ddd36893d481c512b5da1ab8acef | [log] [tgz] |
---|---|---|
author | Jason Evans <je@fb.com> | Wed Feb 24 13:00:40 2016 -0800 |
committer | Jason Evans <je@fb.com> | Wed Feb 24 13:03:48 2016 -0800 |
tree | 950e2c93370191d68f22e9852faac2924f760672 | |
parent | 9e1810ca9dc4a5f5f0841b9a6c1abb4337753552 [diff] [blame] |
Compile with -Wshorten-64-to-32. This will prevent accidental creation of potential integer truncation bugs when developing on LP64 systems.
diff --git a/configure.ac b/configure.ac index da4ee3a..eb387ed 100644 --- a/configure.ac +++ b/configure.ac
@@ -140,6 +140,7 @@ 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