aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-11-08 04:03:50 +0000
committerGuy Harris <guy@alum.mit.edu>2005-11-08 04:03:50 +0000
commit31a44d4bfca369d75c6e4b63f7aa55e7b9ccaaa4 (patch)
treedef5d23d5b7ecb6906e0ffd4c0901a643727cd96
parentaf00219b1bc02fdedb676ccf8e3de2a8811f9516 (diff)
When using GCC, compile with -Wpointer-arith, to catch code that some
other C compilers can't handle. svn path=/trunk/; revision=16431
-rw-r--r--configure.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 79c7fcdf43..af457fccbe 100644
--- a/configure.in
+++ b/configure.in
@@ -121,7 +121,7 @@ AC_ARG_WITH(extra-gcc-checks,
],)
AC_MSG_CHECKING(to see if we can add '-Wall -W $ethereal_extra_gcc_flags' to CFLAGS)
if test x$GCC != x ; then
- CFLAGS="-D_U_=\"__attribute__((unused))\" -Wall -W $ethereal_extra_gcc_flags $CFLAGS"
+ CFLAGS="-D_U_=\"__attribute__((unused))\" -Wall -Wpointer-arith -W $ethereal_extra_gcc_flags $CFLAGS"
AC_MSG_RESULT(yes)
else
CFLAGS="-D_U_=\"\" $CFLAGS"