summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kiszka2011-08-25 11:10:13 +0200
committerAnthony Liguori2011-08-25 20:56:54 +0200
commitf065aa0a005ac539bf8ca556775e5cc4c3d2d3b7 (patch)
tree21666f828caca8cb5e689fe08225775c688ebec6
parentMerge remote-tracking branch 'stefanha/trivial-patches' into staging (diff)
downloadqemu-f065aa0a005ac539bf8ca556775e5cc4c3d2d3b7.tar.gz
qemu-f065aa0a005ac539bf8ca556775e5cc4c3d2d3b7.tar.xz
qemu-f065aa0a005ac539bf8ca556775e5cc4c3d2d3b7.zip
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>
-rw-r--r--hw/vga.c1
1 files changed, 1 insertions, 0 deletions
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;