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 <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
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 @@ size = 0x8000; break; case 3: + default: base = 0xb8000; size = 0x8000; break;