diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-08-25 11:10:13 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-25 13:56:54 -0500 |
commit | f065aa0a005ac539bf8ca556775e5cc4c3d2d3b7 (patch) | |
tree | 21666f828caca8cb5e689fe08225775c688ebec6 /hw/vga.c | |
parent | 56a7a874e962e28522857fbf72eaefb1a07e2001 (diff) |
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>
Diffstat (limited to 'hw/vga.c')
-rw-r--r-- | hw/vga.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -176,6 +176,7 @@ static void vga_update_memory_access(VGACommonState *s) size = 0x8000; break; case 3: + default: base = 0xb8000; size = 0x8000; break; |