[Spice-devel] [PATCH xf86-video-qxl 11/13] qxl_surface.c: fix -Wshadow warning

Christophe Fergeau cfergeau at redhat.com
Tue Apr 10 03:27:29 PDT 2012


ACK
On Mon, Apr 09, 2012 at 08:33:17PM +0300, Alon Levy wrote:
> qxl_surface.c:735:6: warning: declaration of 'i' shadows a previous
> local [-Wshadow]
> ---
>  src/qxl_surface.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/src/qxl_surface.c b/src/qxl_surface.c
> index a283d5e..76b5579 100644
> --- a/src/qxl_surface.c
> +++ b/src/qxl_surface.c
> @@ -730,7 +730,6 @@ surface_add_to_cache (qxl_surface_t *surface)
>      
>      if (n_surfaces == N_CACHED_SURFACES)
>      {
> -	int i;
>  	destroy_id = cache->cached_surfaces[oldest]->id;
>  	
>  	destroy_surface = cache->cached_surfaces[oldest];
> -- 
> 1.7.9.3
> 
> _______________________________________________
> 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/20120410/514f6bc5/attachment.pgp>


More information about the Spice-devel mailing list