Skip to content
Snippets Groups Projects
Commit bccdf6b1 authored by Brad King's avatar Brad King
Browse files

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.
parent 5b2a401a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -18,4 +18,4 @@ SET(KWSYS_DATE_STAMP_YEAR 2010)
SET(KWSYS_DATE_STAMP_MONTH 09)
# KWSys version date day component. Format is DD.
SET(KWSYS_DATE_STAMP_DAY 09)
SET(KWSYS_DATE_STAMP_DAY 10)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment