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>
This commit is contained in:
Jan Kiszka 2011-08-25 11:10:13 +02:00 committed by Anthony Liguori
parent 56a7a874e9
commit f065aa0a00
1 changed files with 1 additions and 0 deletions

View File

@ -176,6 +176,7 @@ static void vga_update_memory_access(VGACommonState *s)
size = 0x8000;
break;
case 3:
default:
base = 0xb8000;
size = 0x8000;
break;