From f065aa0a005ac539bf8ca556775e5cc4c3d2d3b7 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Thu, 25 Aug 2011 11:10:13 +0200 Subject: [PATCH] vga: Silence bogus gcc warning about uninitialized variables 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 Signed-off-by: Anthony Liguori --- hw/vga.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.7.4