summaryrefslogtreecommitdiffstats
path: root/hw/vga.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-08-25 11:10:13 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2011-08-25 13:56:54 -0500
commitf065aa0a005ac539bf8ca556775e5cc4c3d2d3b7 (patch)
tree21666f828caca8cb5e689fe08225775c688ebec6 /hw/vga.c
parent56a7a874e962e28522857fbf72eaefb1a07e2001 (diff)
downloadhqemu-f065aa0a005ac539bf8ca556775e5cc4c3d2d3b7.zip
hqemu-f065aa0a005ac539bf8ca556775e5cc4c3d2d3b7.tar.gz
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.c1
1 files changed, 1 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud