From patchwork Thu Aug 25 09:10:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: vga: Silence bogus gcc warning about uninitialized variables Date: Wed, 24 Aug 2011 23:10:13 -0000 From: Jan Kiszka X-Patchwork-Id: 111529 Message-Id: <4E561175.8080800@siemens.com> To: Anthony Liguori Cc: Avi Kivity , "qemu-devel@nongnu.org" Some gcc versions do not properly detect that all possible cases are covered and base and size are always initialized. Please gcc by defining a pseudo default case. Signed-off-by: Jan Kiszka --- hw/vga.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/vga.c b/hw/vga.c index 851fd68..125fb29 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -176,6 +176,7 @@ static void vga_update_memory_access(VGACommonState *s) size = 0x8000; break; case 3: + default: base = 0xb8000; size = 0x8000; break;