OSDN Git Service

Suppress a GCC warning
authorBlue Swirl <blauwirbel@gmail.com>
Wed, 1 Jul 2009 19:30:50 +0000 (19:30 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 1 Jul 2009 19:30:50 +0000 (19:30 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-i386/helper.c

index bcaaab7..82e1ff1 100644 (file)
@@ -314,7 +314,7 @@ static int cpu_x86_fill_model_id(char *str)
 
 static int cpu_x86_fill_host(x86_def_t *x86_cpu_def)
 {
-    uint32_t eax, ebx, ecx, edx;
+    uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0;
 
     x86_cpu_def->name = "host";
     host_cpuid(0x0, 0, &eax, &ebx, &ecx, &edx);