diff options
author | Jason Evans <je@fb.com> | 2016-02-24 21:00:40 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2016-02-24 21:03:48 (GMT) |
commit | b3d0070b1495ddd36893d481c512b5da1ab8acef (patch) | |
tree | 950e2c93370191d68f22e9852faac2924f760672 | |
parent | 9e1810ca9dc4a5f5f0841b9a6c1abb4337753552 (diff) | |
download | jemalloc-b3d0070b1495ddd36893d481c512b5da1ab8acef.zip jemalloc-b3d0070b1495ddd36893d481c512b5da1ab8acef.tar.gz jemalloc-b3d0070b1495ddd36893d481c512b5da1ab8acef.tar.bz2 |
Compile with -Wshorten-64-to-32.
This will prevent accidental creation of potential integer truncation
bugs when developing on LP64 systems.
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index da4ee3a..eb387ed 100644 --- a/configure.ac +++ b/configure.ac @@ -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 |