build: Supress all CC warnings by default
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 22 Sep 2009 14:01:34 +0000 (17:01 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 22 Sep 2009 14:01:34 +0000 (17:01 +0300)
Supress all warnings from C compiler unless told to be strict.

configure.ac

index 8dbafbf..c2e864f 100644 (file)
@@ -116,6 +116,8 @@ AC_ARG_ENABLE(strict-cc,
         enable_strict_cc=no)
 if test "x$enable_strict_cc" = "xyes"; then
         CFLAGS="$CFLAGS -Wall -Werror"
+else
+        CFLAGS="$CFLAGS -w"
 fi
 
 # Run uninstalled