aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-04-21 23:04:36 +0000
committerGuy Harris <guy@alum.mit.edu>2007-04-21 23:04:36 +0000
commit464e5030ca8a8d04f3ce8c34345713aa1260f98d (patch)
tree53e22504ba4424e66a0f6ec8aea818f881cf90b5 /wiretap
parent3b120c2491f993f2b35e63d21d31c0d07d8fde2c (diff)
Fix a comment to reflect reality - -Wcast-qual is added only with
--with-extra-gcc-checks. Unconditionally add -Wpointer-arith to GCC flags, and, if --with-extra-gcc-checks is specified, add -Wstrict-prototypes. svn path=/trunk/; revision=21491
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/configure.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/wiretap/configure.in b/wiretap/configure.in
index d5cea44085..d9d7f9383b 100644
--- a/wiretap/configure.in
+++ b/wiretap/configure.in
@@ -23,7 +23,7 @@ AC_PATH_PROG(LEX, flex)
AC_SUBST(FLEX_PATH)
#
-# If we're running gcc, add '-Wall -W -Wcast-qual' to CFLAGS, and add
+# If we're running gcc, add '-Wall -Wpointer-arith -W' to CFLAGS, and add
# '-D_U_="__attribute__((unused))"' as well, so we can use _U_ to
# flag unused function arguments and not get warnings about them.
# If "--with-extra-gcc-checks" was specified, add some additional
@@ -37,12 +37,12 @@ AC_ARG_WITH(extra-gcc-checks,
[
if test $withval != no
then
- wireshark_extra_gcc_flags=" -Wcast-qual -Wcast-align -Wbad-function-cast -pedantic -Wmissing-declarations -Wwrite-strings"
+ wireshark_extra_gcc_flags=" -Wcast-qual -Wcast-align -Wbad-function-cast -pedantic -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings"
fi
],)
-AC_MSG_CHECKING(to see if we can add '-Wall -W$wireshark_extra_gcc_flags' to CFLAGS)
+AC_MSG_CHECKING(to see if we can add '-Wall -Wpointer-arith -W$wireshark_extra_gcc_flags' to CFLAGS)
if test x$GCC != x ; then
- CFLAGS="-D_U_=\"__attribute__((unused))\" -Wall -W $wireshark_extra_gcc_flags $CFLAGS"
+ CFLAGS="-D_U_=\"__attribute__((unused))\" -Wall -Wpointer-arith -W$wireshark_extra_gcc_flags $CFLAGS"
AC_MSG_RESULT(yes)
else
CFLAGS="-D_U_=\"\" $CFLAGS"