From: Aurelien Jarno Date: Thu, 6 Jan 2011 21:28:33 +0000 (+0100) Subject: cirrus: delete GCC 4.6 warnings X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=78935c4a4bfec8ef2f4f924cfc35ac09a963e81e;p=qemu-xen-4.1-testing.git 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 Signed-off-by: Aurelien Jarno --- diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index 833a2eb4b..75d1cc6f5 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 */