summaryrefslogtreecommitdiff
path: root/include/u-boot
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-04-29 00:28:40 +0200
committerWolfgang Denk <wd@denx.de>2012-04-29 14:14:08 +0200
commitb68d63ce4bf780bcb7d1af917d3b44413cf1206f (patch)
tree0599b3a1f1e4046a6e113ab89da4329272f3e5bf /include/u-boot
parentf624dd15e3602d6b29b191f42388c182aaa1a855 (diff)
downloadu-boot-imx-b68d63ce4bf780bcb7d1af917d3b44413cf1206f.zip
u-boot-imx-b68d63ce4bf780bcb7d1af917d3b44413cf1206f.tar.gz
u-boot-imx-b68d63ce4bf780bcb7d1af917d3b44413cf1206f.tar.bz2
GCC47: Fix warning in md5.c
md5.c: In function ‘MD5Final’: md5.c:156:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] md5.c:157:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Signed-off-by: Marek Vasut <marex@denx.de> Cc: Wolfgang Denk <wd@denx.de> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/u-boot')
-rw-r--r--include/u-boot/md5.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/u-boot/md5.h b/include/u-boot/md5.h
index 08924cc..e09c16a 100644
--- a/include/u-boot/md5.h
+++ b/include/u-boot/md5.h
@@ -11,7 +11,10 @@
struct MD5Context {
__u32 buf[4];
__u32 bits[2];
- unsigned char in[64];
+ union {
+ unsigned char in[64];
+ __u32 in32[16];
+ };
};
/*