[Spice-devel] [PATCH 2/6] qxl_driver: remove unused variable (found by gcc 4.6.0)

Alon Levy alevy at redhat.com
Thu Feb 10 11:05:03 PST 2011


---
 src/qxl_driver.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 6399d31..d1ad499 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -826,7 +826,6 @@ qxl_screen_init(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
 {
     ScrnInfoPtr pScrn = xf86Screens[scrnIndex];
     qxl_screen_t *qxl = pScrn->driverPrivate;
-    struct qxl_rom *rom;
     struct qxl_ram_header *ram_header;
     VisualPtr visual;
     
@@ -837,7 +836,6 @@ qxl_screen_init(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
     if (!qxl_map_memory(qxl, scrnIndex))
 	return FALSE;
     
-    rom = qxl->rom;
     ram_header = (void *)((unsigned long)qxl->ram + (unsigned long)qxl->rom->ram_header_offset);
     
     printf ("ram_header at %d\n", qxl->rom->ram_header_offset);
-- 
1.7.4



More information about the Spice-devel mailing list