Skip to content

Commit

Permalink
vga: Silence bogus gcc warning about uninitialized variables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jan-kiszka authored and Anthony Liguori committed Aug 25, 2011
1 parent 56a7a87 commit f065aa0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/vga.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ static void vga_update_memory_access(VGACommonState *s)
size = 0x8000;
break;
case 3:
default:
base = 0xb8000;
size = 0x8000;
break;
Expand Down

0 comments on commit f065aa0

Please sign in to comment.