From 0a6705cbda8171667c4b37872136cd102ccc328c Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 17 Nov 2011 11:12:00 -0500 Subject: [PATCH] sha2: Suppress -Wcast-align warning from Clang The code does contain a cast that increases alignment but only for pointers into structures known to be sufficiently aligned. --- Source/cm_sha2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/cm_sha2.c b/Source/cm_sha2.c index 7991d27f0..b1798a85f 100644 --- a/Source/cm_sha2.c +++ b/Source/cm_sha2.c @@ -106,6 +106,9 @@ typedef cm_sha2_uint64_t sha_word64; /* Exactly 8 bytes */ #if defined(__BORLANDC__) # pragma warn -8004 /* variable assigned value that is never used */ #endif +#if defined(__clang__) +# pragma clang diagnostic ignored "-Wcast-align" +#endif /*** ENDIAN REVERSAL MACROS *******************************************/ #if BYTE_ORDER == LITTLE_ENDIAN