|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH] vga: Silence bogus gcc warning about uninitialized variables |
Date: | Thu, 25 Aug 2011 17:41:58 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10 |
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<address@hidden>
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;
[Prev in Thread] | Current Thread | [Next in Thread] |