From dbfe9378c20cc11aa1cb276badcb8f87172eb6a1 Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Sat, 18 Sep 2010 12:14:14 +0200 Subject: Use -Werror only when --enable-maintainer-mode is used This means that tarballs will not fail on warnings by default, while building from git will. --- configure.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 92a914c4..acdc8548 100644 --- a/configure.in +++ b/configure.in @@ -522,7 +522,10 @@ fi # Warnings are there for a reason if test "x$GCC" = "xyes"; then - CFLAGS="$CFLAGS -Wall -Werror -ansi" + CFLAGS="$CFLAGS -Wall -ansi" + if test "x$enable_maintainer_mode" = "xyes"; then + CFLAGS="$CFLAGS -Werror" + fi fi # Use gnome-doc-utils: -- cgit v1.2.1