diff options
author | Vincent Untz <vuntz@gnome.org> | 2010-09-18 12:14:14 +0200 |
---|---|---|
committer | Vincent Untz <vuntz@gnome.org> | 2010-09-18 12:14:14 +0200 |
commit | dbfe9378c20cc11aa1cb276badcb8f87172eb6a1 (patch) | |
tree | cbbef59ca9cf0e8601ca8624b92b556e8282b220 /configure.in | |
parent | 9d57d82aa92df89ab30e025c4eadea924343e633 (diff) | |
download | metacity-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.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 5 |
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: |