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

Submitted by Alon Levy on April 9, 2012, 5:33 p.m.

Details

Message ID 1333992799-14302-12-git-send-email-alevy@redhat.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Alon Levy April 9, 2012, 5:33 p.m.
qxl_surface.c:735:6: warning: declaration of 'i' shadows a previous
local [-Wshadow]
---
 src/qxl_surface.c |    1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

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];

Comments

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@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel