mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-05 23:30:25 +00:00
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.
This commit is contained in:
@@ -106,6 +106,9 @@ typedef cm_sha2_uint64_t sha_word64; /* Exactly 8 bytes */
|
|||||||
#if defined(__BORLANDC__)
|
#if defined(__BORLANDC__)
|
||||||
# pragma warn -8004 /* variable assigned value that is never used */
|
# pragma warn -8004 /* variable assigned value that is never used */
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(__clang__)
|
||||||
|
# pragma clang diagnostic ignored "-Wcast-align"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*** ENDIAN REVERSAL MACROS *******************************************/
|
/*** ENDIAN REVERSAL MACROS *******************************************/
|
||||||
#if BYTE_ORDER == LITTLE_ENDIAN
|
#if BYTE_ORDER == LITTLE_ENDIAN
|
||||||
|
|||||||
Reference in New Issue
Block a user