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:
parent
de346204b8
commit
f2b4a46677
@ -29,6 +29,11 @@
|
|||||||
it in a single source file instead of a separate header and
|
it in a single source file instead of a separate header and
|
||||||
implementation file. */
|
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.
|
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));
|
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. */
|
/* Wrap up the MD5 state in our opaque structure. */
|
||||||
struct kwsysMD5_s
|
struct kwsysMD5_s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user