diff options
Diffstat (limited to 'wiretap/configure.in')
-rw-r--r-- | wiretap/configure.in | 8 |
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" |