From 5abff1068fcfb3234295021a635ea5167404a10b Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 8 Sep 2011 13:54:17 +0400 Subject: [PATCH] Output extra GCC warnings. * configure.ac (CFLAGS): Add -Wall -Wextra -Wno-unused-parameter options (only if GCC). --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) 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__ -- 2.40.0