summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2010-09-18 12:14:14 +0200
committerVincent Untz <vuntz@gnome.org>2010-09-18 12:14:14 +0200
commitdbfe9378c20cc11aa1cb276badcb8f87172eb6a1 (patch)
treecbbef59ca9cf0e8601ca8624b92b556e8282b220
parent9d57d82aa92df89ab30e025c4eadea924343e633 (diff)
downloadmetacity-dbfe9378c20cc11aa1cb276badcb8f87172eb6a1.tar.gz
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.
-rw-r--r--configure.in5
1 files changed, 4 insertions, 1 deletions
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: