From b68d63ce4bf780bcb7d1af917d3b44413cf1206f Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Sun, 29 Apr 2012 00:28:40 +0200 Subject: GCC47: Fix warning in md5.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Cc: Wolfgang Denk Acked-by: Mike Frysinger --- include/u-boot/md5.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/u-boot') diff --git a/include/u-boot/md5.h b/include/u-boot/md5.h index 08924cce3c..e09c16a6e3 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]; + }; }; /* -- cgit v1.2.3