Dear all,
when using
./configure --extra-gcc-checks
some additional checks are done, as given by
AC_ARG_WITH(extra-gcc-checks,
[ --with-extra-gcc-checks do additional -W checks in GCC.
[default=no]],
[
if test $withval != no
then
ethereal_extra_gcc_flags=" -Wcast-qual -Wcast-align
-Wbad-function-cast -pedantic -Wstrict-prototypes"
fi
],)
from the top level configure.in
This works fine (for me), because I'm not using --extra-gcc-checks. In
the subdirectories
(wiretap for example) these checks are used.
From wiretap/configure.in
AC_ARG_WITH(extra-gcc-checks,
[ --with-extra-gcc-checks Do additional -W checks in GCC.
[default=no]],
[
if test $withval != no
then
ethereal_extra_gcc_flags=" "
fi
],)
AC_MSG_CHECKING(to see if we can add '-Wall -W
-Wcast-qual$ethereal_extra_gcc_fl
ags' to CFLAGS)
if test x$GCC != x ; then
CFLAGS="-D_U_=\"__attribute__((unused))\" -Wall -W -Wcast-qual
-Wcast-align -W
bad-function-cast -pedantic$ethereal_extra_gcc_flags $CFLAGS"
AC_MSG_RESULT(yes)
else
CFLAGS="-D_U_=\"\" $CFLAGS"
AC_MSG_RESULT(no)
fi
It seems for me, that you are using -pedantic, iff gcc is the compiler.
Why are you not using the same as the top level?
Best regards
Michael