[Spice-devel] [PATCH 3/3] gl: remove unused variables

Christophe Fergeau cfergeau at redhat.com
Thu Apr 7 09:05:42 PDT 2011


gcc 4.6 warned about these.
---
 client/x11/red_pixmap_gl.cpp |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/client/x11/red_pixmap_gl.cpp b/client/x11/red_pixmap_gl.cpp
index 7c85966..0e7b8c1 100644
--- a/client/x11/red_pixmap_gl.cpp
+++ b/client/x11/red_pixmap_gl.cpp
@@ -175,10 +175,7 @@ void RedPixmapGL::update_texture(const SpiceRect *bbox)
 {
     RenderType rendertype;
     GLuint tex;
-    int width_powed;
-    int height_powed;
     int height;
-    int width;
 
     rendertype = ((PixelsSource_p*)get_opaque())->gl.rendertype;
 
@@ -189,9 +186,6 @@ void RedPixmapGL::update_texture(const SpiceRect *bbox)
         int is_enabled;
         GLint prev_tex;
 
-        width_powed = ((PixelsSource_p*)get_opaque())->gl.width_powed;
-        height_powed = ((PixelsSource_p*)get_opaque())->gl.height_powed;
-        width = ((PixelsSource_p*)get_opaque())->gl.width;
         height = ((PixelsSource_p*)get_opaque())->gl.height;
 
         tex = ((PixelsSource_p*)get_opaque())->gl.tex;
-- 
1.7.4.2



More information about the Spice-devel mailing list