Turn on almost all warnings for Wiretap - if any of them cause problems

on some platforms due to unfixable problems (e.g., crappy vendor
headers), we can move them back to the "extra" list.

Put those warnings in the order in which they appear in the GCC man page
on my machine.

If we turn on -pedantic, try turning on -Wno-long-long as well, so that
it's not *so* pedantic that it rejects the 64-bit integral data types
that we explicitly require.

svn path=/trunk/; revision=21514
This commit is contained in:
Guy Harris 2007-04-22 23:47:56 +00:00
parent 8ff9801ec1
commit aff8dc680d
1 changed files with 9 additions and 8 deletions

View File

@ -32,18 +32,19 @@ AC_ARG_ENABLE(extra-gcc-checks,
[
if test $enableval != no
then
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wcast-qual)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wcast-align)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wbad-function-cast)
AC_WIRETAP_GCC_CFLAGS_CHECK(-pedantic)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wstrict-prototypes)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wmissing-declarations)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wwrite-strings)
AC_WIRETAP_GCC_CFLAGS_CHECK(-pedantic)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wno-long-long)
fi
],)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wall -W)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wpointer-arith)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wdeclaration-after-statement)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wpointer-arith)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wbad-function-cast)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wcast-qual)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wcast-align)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wwrite-strings)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wstrict-prototypes)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wmissing-declarations)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wno-pointer-sign)
#