cirrus: delete GCC 4.6 warnings
authorAurelien Jarno <aurelien@aurel32.net>
Thu, 6 Jan 2011 21:28:33 +0000 (22:28 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 6 Jan 2011 21:29:04 +0000 (22:29 +0100)
Commit 92d675d1c1f23f3617e24b63c825074a1d1da44b triggered uninitialized
variables warning with GCC 4.6. Fix them by adding zero initializers.

Acked-by: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/cirrus_vga.c

index 833a2eb..75d1cc6 100644 (file)
@@ -673,9 +673,9 @@ static int cirrus_bitblt_videotovideo_patterncopy(CirrusVGAState * s)
 
 static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h)
 {
-    int sx, sy;
-    int dx, dy;
-    int depth;
+    int sx = 0, sy = 0;
+    int dx = 0, dy = 0;
+    int depth = 0;
     int notify = 0;
 
     /* make sure to only copy if it's a plain copy ROP */