diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-05-06 22:23:12 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-05-06 22:23:12 +0200 |
commit | 82171a2ea4d81d1dd2f71142ed6021ab383d836b (patch) | |
tree | 3c7142a8887b7a473c5545dbe9fecbef0e1cca8d | |
parent | e9c898bf24c2faf86d3d2f61361bc52ff3abc8b2 (diff) | |
download | guile-82171a2ea4d81d1dd2f71142ed6021ab383d836b.tar.gz |
Build with `-Wpointer-arith' when available.
* configure.ac (POTENTIAL_GCC_CFLAGS): Add `-Wpointer-arith'.
-rw-r--r-- | configure.ac | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index c506b392e..3c117d3fd 100644 --- a/configure.ac +++ b/configure.ac @@ -1495,8 +1495,6 @@ case "$GCC" in ## We had -Wstrict-prototypes in here for a bit, but Guile does too ## much stuff with generic function pointers for that to really be ## less than exasperating. - ## -Wpointer-arith was here too, but something changed in gcc/glibc - ## and it became equally exasperating (gcc 2.95 and/or glibc 2.1.2). ## -Wundef was removed because Gnulib prevented it (see ## <http://thread.gmane.org/gmane.lisp.guile.bugs/5329>.) @@ -1505,7 +1503,7 @@ case "$GCC" in ## <http://lists.gnu.org/archive/html/guile-devel/2012-01/msg00487.html>. POTENTIAL_GCC_CFLAGS="-Wall -Wmissing-prototypes \ - -Wdeclaration-after-statement \ + -Wdeclaration-after-statement -Wpointer-arith \ -Wswitch-enum -fno-strict-aliasing" # Do this here so we don't screw up any of the tests above that might # not be "warning free" |