From: Ivan Maidanski Date: Thu, 8 Sep 2011 09:54:17 +0000 (+0400) Subject: Output extra GCC warnings. X-Git-Tag: gc7_3alpha2~376 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5abff1068fcfb3234295021a635ea5167404a10b;p=gc Output extra GCC warnings. * configure.ac (CFLAGS): Add -Wall -Wextra -Wno-unused-parameter options (only if GCC). --- diff --git a/configure.ac b/configure.ac index 9f7b3fa1..deb3545f 100644 --- a/configure.ac +++ b/configure.ac @@ -300,6 +300,10 @@ case "$host" in ;; esac +if test "$GCC" == yes; then + CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter" +fi + AC_MSG_CHECKING(for xlc) AC_TRY_COMPILE([],[ #ifndef __xlC__