[Spice-devel] [PATCH] Fix mandatory -Werror option

Erlon Cruz erlon.cruz at br.flextronics.com
Fri Jan 27 05:38:40 PST 2012


Compilation was breaking due to warning errors even when configuring with --enable-werror=no. This patch fix this.
---
 configure.ac |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 0f8ad7d..8cabbd6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -405,7 +405,7 @@ dnl MAYBE_WARN="-Wall -Wno-sign-compare -Werror -Wno-deprecated-declarations"
 if test "$red_target" = "windows"; then
 	MAYBE_WARN="-Wall -Wno-sign-compare -Wno-deprecated-declarations"
 else
-	MAYBE_WARN="-Wall -Wno-sign-compare -Werror -Wno-deprecated-declarations"
+	MAYBE_WARN="-Wall -Wno-sign-compare -Wno-deprecated-declarations"
 fi
 
 AC_ARG_ENABLE(werror,
@@ -419,7 +419,6 @@ else
 fi
 ])
 
-
 # invalidate cached value if MAYBE_WARN has changed
 if test "x$spice_cv_warn_maybe" != "x$MAYBE_WARN"; then
 	unset spice_cv_warn_cflags
-- 
1.7.4.1



More information about the Spice-devel mailing list