summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2011-01-06 22:28:33 +0100
committerAurelien Jarno <aurelien@aurel32.net>2011-01-06 22:29:04 +0100
commit78935c4a4bfec8ef2f4f924cfc35ac09a963e81e (patch)
treeafcc26cdaa7bd53c86a94e67a93426647b1a4042
parentcecd8504b80148b66cdc1ce32046429bc3549090 (diff)
downloadfocaccia-qemu-78935c4a4bfec8ef2f4f924cfc35ac09a963e81e.tar.gz
focaccia-qemu-78935c4a4bfec8ef2f4f924cfc35ac09a963e81e.zip
cirrus: delete GCC 4.6 warnings
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>
-rw-r--r--hw/cirrus_vga.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c
index 833a2eb4be..75d1cc6f57 100644
--- a/hw/cirrus_vga.c
+++ b/hw/cirrus_vga.c
@@ -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 */