mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
board/eltec/elppc/misc.c: Fix GCC 4.6 build warning
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>
This commit is contained in:
parent
40867a2fe1
commit
c3e17d5c9e
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue