diff options
author | Brad King <brad.king@kitware.com> | 2010-09-10 08:53:50 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-09-10 09:00:02 -0400 |
commit | f2b4a466779f5481c79d711ee2601d60ce41a6ad (patch) | |
tree | 26656f251b26ff27bcbca64383edd919317c3f8a /Source | |
parent | de346204b823f79685fa6a0be5c3c376fdbb422b (diff) | |
download | cmake-f2b4a466779f5481c79d711ee2601d60ce41a6ad.tar.gz |
KWSys: Suppress -Wcast-align warning in MD5.c
The code does contain a cast that increases alignment but only in a
conditional that verifies the input is sufficiently aligned.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/MD5.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/kwsys/MD5.c b/Source/kwsys/MD5.c index 1ea0a66b1f..56776a3249 100644 --- a/Source/kwsys/MD5.c +++ b/Source/kwsys/MD5.c @@ -29,6 +29,11 @@ it in a single source file instead of a separate header and implementation file. */ +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wcast-align" +#endif + /* Copyright (C) 1999, 2000, 2002 Aladdin Enterprises. All rights reserved. @@ -428,6 +433,10 @@ static void md5_finish(md5_state_t *pms, md5_byte_t digest[16]) digest[i] = (md5_byte_t)(pms->abcd[i >> 2] >> ((i & 3) << 3)); } +#if defined(__clang__) +# pragma clang diagnostic pop +#endif + /*--------------------------------------------------------------------------*/ /* Wrap up the MD5 state in our opaque structure. */ struct kwsysMD5_s |