From: Ludovic Courtès Date: Sun, 6 May 2012 20:23:12 +0000 (+0200) Subject: Build with `-Wpointer-arith' when available. X-Git-Url: http://git.hcoop.net/bpt/guile.git/commitdiff_plain/82171a2ea4d81d1dd2f71142ed6021ab383d836b Build with `-Wpointer-arith' when available. * configure.ac (POTENTIAL_GCC_CFLAGS): Add `-Wpointer-arith'. --- 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 ## .) @@ -1505,7 +1503,7 @@ case "$GCC" in ## . 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"