summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-12-20 07:51:09 +0000
committerWolfgang Denk <wd@denx.de>2011-12-20 23:21:38 +0100
commitc3e17d5c9e73ca20d309277897f7ddfabf3dd3d0 (patch)
treea252880d3e856c576e4caf015905ba0f9005f8b8
parent40867a2fe1a1b079269db19e58444213132f6799 (diff)
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>
-rw-r--r--board/eltec/elppc/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/eltec/elppc/misc.c b/board/eltec/elppc/misc.c
index d476cd5c1c..89f1b1d355 100644
--- 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 */