mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05: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
@ -90,7 +90,7 @@ static void MD4_Final(unsigned char *result, MD4_CTX *ctx);
|
|||||||
*/
|
*/
|
||||||
#if defined(__i386__) || defined(__x86_64__) || defined(__vax__)
|
#if defined(__i386__) || defined(__x86_64__) || defined(__vax__)
|
||||||
#define SET(n) \
|
#define SET(n) \
|
||||||
(*(MD4_u32plus *)&ptr[(n) * 4])
|
(*(MD4_u32plus *)(void *)&ptr[(n) * 4])
|
||||||
#define GET(n) \
|
#define GET(n) \
|
||||||
SET(n)
|
SET(n)
|
||||||
#else
|
#else
|
||||||
|
@ -260,7 +260,7 @@ static void MD5_Final(unsigned char *result, MD5_CTX *ctx);
|
|||||||
*/
|
*/
|
||||||
#if defined(__i386__) || defined(__x86_64__) || defined(__vax__)
|
#if defined(__i386__) || defined(__x86_64__) || defined(__vax__)
|
||||||
#define SET(n) \
|
#define SET(n) \
|
||||||
(*(MD5_u32plus *)&ptr[(n) * 4])
|
(*(MD5_u32plus *)(void *)&ptr[(n) * 4])
|
||||||
#define GET(n) \
|
#define GET(n) \
|
||||||
SET(n)
|
SET(n)
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user