diff options
author | Marcel Raad <raad@teamviewer.com> | 2017-06-02 21:58:48 +0200 |
---|---|---|
committer | Marcel Raad <raad@teamviewer.com> | 2017-06-02 21:58:48 +0200 |
commit | 769890c7e231b23962580c42df003967060a30fd (patch) | |
tree | 2ea21f1fa21728dd53a279b9296de23248d6ad90 | |
parent | 61d4870dc9c7a0d78d9ae54d95b41d383770a522 (diff) | |
download | curl-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.c | 2 | ||||
-rw-r--r-- | lib/md5.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 @@ -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 |