[Spice-devel] [PATCH xf86-video-qxl 07/13] (questionable) qxl_surface: qxl_surface_prepare_access: handle unused but set warning with (void)

Alon Levy alevy at redhat.com
Mon Apr 9 10:33:13 PDT 2012


---
 src/qxl_surface.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/qxl_surface.c b/src/qxl_surface.c
index 6761bf6..a283d5e 100644
--- a/src/qxl_surface.c
+++ b/src/qxl_surface.c
@@ -863,6 +863,8 @@ qxl_surface_prepare_access (qxl_surface_t  *surface,
 
     stride = pixman_image_get_stride (surface->dev_image);
     height = pixman_image_get_height (surface->dev_image);
+    (void)height; // XXX keep around for debug?
+    (void)stride;
 
     if (n_boxes < 25)
     {
-- 
1.7.9.3



More information about the Spice-devel mailing list