On 08/25/2011 04:10 AM, Jan Kiszka wrote:
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.kis...@siemens.com>

Applied.  Thanks.

Regards,

Anthony Liguori

---
  hw/vga.c |    1 +
  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;


Reply via email to