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.
This commit is contained in:
Brad King 2010-09-10 08:53:50 -04:00
parent de346204b8
commit f2b4a46677
1 changed files with 9 additions and 0 deletions

View File

@ -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