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

Christophe Fergeau cfergeau at redhat.com
Thu Feb 9 10:11:02 PST 2012


I've now pushed this patch, sorry for taking a bit of time for doing it :)

Christophe

On Fri, Jan 27, 2012 at 11:38:40AM -0200, Erlon Cruz wrote:
> 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
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20120209/49194080/attachment.pgp>


More information about the Spice-devel mailing list