]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
configure: Keep -Werror enabled for Release Candidates
authorAndreas Färber <afaerber@suse.de>
Sun, 27 Jan 2013 15:16:19 +0000 (16:16 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 1 Feb 2013 16:43:20 +0000 (10:43 -0600)
The automatic drop of -Werror during the RC phases has in the past led
to warnings creeping into submaintainer trees.

Last QEMU Summit it was concluded that -Werror should stay on and
enabled only as part of the release process.

To relieve our release manager, instead of always enabling -Werror or
doing some number magic, let's enable it depending on whether a .git/
directory exists in the source tree.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure

index b7635e4fec9d32d2fdcc1e2b538a272f47b97606..0657b1a1b581712c4143251ad81f2c2e11686515 100755 (executable)
--- a/configure
+++ b/configure
@@ -1180,7 +1180,7 @@ fi
 z_version=`cut -f3 -d. $source_path/VERSION`
 
 if test -z "$werror" ; then
-    if test "$z_version" = "50" -a \
+    if test -d "$source_path/.git" -a \
         "$linux" = "yes" ; then
         werror="yes"
     else