When using GCC, compile with -Wpointer-arith, to catch code that some
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 8 Nov 2005 04:03:50 +0000 (04:03 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 8 Nov 2005 04:03:50 +0000 (04:03 +0000)
other C compilers can't handle.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16431 f5534014-38df-0310-8fa8-9805f1628bb7

configure.in

index 79c7fcdf43ef5ae36adef3a8fba4616c51263adf..af457fccbe6def9136fa376b3b2e469bacd46cd4 100644 (file)
@@ -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"