From: Jan Kiszka Date: Thu, 25 Aug 2011 09:10:13 +0000 (+0200) Subject: vga: Silence bogus gcc warning about uninitialized variables X-Git-Tag: pull-nvme-20200902~9417 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f065aa0a005ac539bf8ca556775e5cc4c3d2d3b7;p=qemu-nvme.git 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 --- diff --git a/hw/vga.c b/hw/vga.c index 851fd689b3..125fb293f2 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;