summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-06-02 21:58:48 +0200
committerMarcel Raad <raad@teamviewer.com>2017-06-02 21:58:48 +0200
commit769890c7e231b23962580c42df003967060a30fd (patch)
tree2ea21f1fa21728dd53a279b9296de23248d6ad90
parent61d4870dc9c7a0d78d9ae54d95b41d383770a522 (diff)
downloadcurl-769890c7e231b23962580c42df003967060a30fd.tar.gz
MD(4|5): silence cast-align clang warning
Unaligned access is on purpose here and the warning is harmless on affected architectures. GCC knows that, while clang warns on all architectures.
-rw-r--r--lib/md4.c2
-rw-r--r--lib/md5.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/md4.c b/lib/md4.c
index b7ce26c79..2bb7dcc25 100644
--- a/lib/md4.c
+++ b/lib/md4.c
@@ -90,7 +90,7 @@ static void MD4_Final(unsigned char *result, MD4_CTX *ctx);
*/
#if defined(__i386__) || defined(__x86_64__) || defined(__vax__)
#define SET(n) \
- (*(MD4_u32plus *)&ptr[(n) * 4])
+ (*(MD4_u32plus *)(void *)&ptr[(n) * 4])
#define GET(n) \
SET(n)
#else
diff --git a/lib/md5.c b/lib/md5.c
index f2dc16c09..80301a141 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -260,7 +260,7 @@ static void MD5_Final(unsigned char *result, MD5_CTX *ctx);
*/
#if defined(__i386__) || defined(__x86_64__) || defined(__vax__)
#define SET(n) \
- (*(MD5_u32plus *)&ptr[(n) * 4])
+ (*(MD5_u32plus *)(void *)&ptr[(n) * 4])
#define GET(n) \
SET(n)
#else