projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
258b135
)
x86: Fix a warning with gcc 4.4.4
author
Simon Glass
<sjg@chromium.org>
Thu, 13 Nov 2014 03:27:55 +0000
(20:27 -0700)
committer
Simon Glass
<sjg@chromium.org>
Fri, 21 Nov 2014 06:24:10 +0000
(07:24 +0100)
This warning appears even though it seems that the compiler could work it
out. Fix it.
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/cpu.c
patch
|
blob
|
history
diff --git
a/arch/x86/cpu/cpu.c
b/arch/x86/cpu/cpu.c
index a4e639dcf3379f26613aa7ab0888905488f2e848..358361970fe427ccfdc2203c7ef56b6020a580cc 100644
(file)
--- 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()) {