[U-Boot] [PATCH] x86: Fix a warning with gcc 4.4.4
    Simon Glass 
    sjg at chromium.org
       
    Thu Nov 13 04:27:55 CET 2014
    
    
  
This warning appears even though it seems that the compiler could work it
out. Fix it.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
 arch/x86/cpu/cpu.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index a4e639d..3583619 100644
--- a/arch/x86/cpu/cpu.c
+++ b/arch/x86/cpu/cpu.c
@@ -238,6 +238,7 @@ static void identify_cpu(struct cpu_device_id *cpu)
 	int i;
 
 	vendor_name[0] = '\0'; /* Unset */
+	cpu->device = 0; /* fix gcc 4.4.4 warning */
 
 	/* Find the id and vendor_name */
 	if (!has_cpuid()) {
-- 
2.1.0.rc2.206.gedb03e5
    
    
More information about the U-Boot
mailing list