diff options
author | Brad King <brad.king@kitware.com> | 2011-11-17 16:12:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-11-17 16:12:00 (GMT) |
commit | 0a6705cbda8171667c4b37872136cd102ccc328c (patch) | |
tree | 88634ecf08220e18ade1613215bb4c84f3b013fa /Source/cm_sha2.c | |
parent | 24b1feb5ca9dbc3461d373e4de30a33157f81375 (diff) | |
download | CMake-0a6705cbda8171667c4b37872136cd102ccc328c.zip CMake-0a6705cbda8171667c4b37872136cd102ccc328c.tar.gz CMake-0a6705cbda8171667c4b37872136cd102ccc328c.tar.bz2 |
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.
Diffstat (limited to 'Source/cm_sha2.c')
-rw-r--r-- | Source/cm_sha2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cm_sha2.c b/Source/cm_sha2.c index 7991d27..b1798a8 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 |