mirror of
https://github.com/curl/curl.git
synced 2026-07-24 13:17:15 +03:00
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.
This commit is contained in:
parent
61d4870dc9
commit
769890c7e2
2 changed files with 2 additions and 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue