[Spice-devel] [PATCH xf86-video-qxl 11/13] qxl_surface.c: fix -Wshadow warning
Alon Levy
alevy at redhat.com
Mon Apr 9 10:33:17 PDT 2012
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
More information about the Spice-devel
mailing list