projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40867a2
)
board/eltec/elppc/misc.c: Fix GCC 4.6 build warning
author
Anatolij Gustschin
<agust@denx.de>
Tue, 20 Dec 2011 07:51:09 +0000
(07:51 +0000)
committer
Wolfgang Denk
<wd@denx.de>
Tue, 20 Dec 2011 22:21:38 +0000
(23:21 +0100)
Fix:
misc.c: In function 'misc_init_r':
misc.c:119:3: warning: dereferencing type-punned pointer
will break strict-aliasing rules [-Wstrict-aliasing]
Signed-off-by: Anatolij Gustschin <agust@denx.de>
board/eltec/elppc/misc.c
patch
|
blob
|
history
diff --git
a/board/eltec/elppc/misc.c
b/board/eltec/elppc/misc.c
index d476cd5c1c7e0be392bc6f7cf588c74f5aa68ad1..89f1b1d3559ba9d4c6cd988d510917d574dd067b 100644
(file)
--- a/
board/eltec/elppc/misc.c
+++ b/
board/eltec/elppc/misc.c
@@
-116,7
+116,7
@@
int misc_init_r (void)
eerev.etheraddr[5] = 0x4D;
/* cache config word for ELPPC */
-
*(int *) &eerev.res[0] = 0
;
+
memset(&eerev.res[0], 0, 4)
;
initSrom = 1; /* force dialog */
copyNv = 1; /* copy to nvram */