diff options
author | Mattias Andrée <maandree@kth.se> | 2021-07-30 18:59:01 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-07-30 18:59:01 +0200 |
commit | 67c2da55938ac19d0428205cdf53fb1bc6d3f386 (patch) | |
tree | 2ae7e9cadaa1e473ef25f8ce6727529f4a975bc6 /libkeccak.h | |
parent | Use inline instead of static inline for non-deprecated functions (diff) | |
download | libkeccak-67c2da55938ac19d0428205cdf53fb1bc6d3f386.tar.gz libkeccak-67c2da55938ac19d0428205cdf53fb1bc6d3f386.tar.bz2 libkeccak-67c2da55938ac19d0428205cdf53fb1bc6d3f386.tar.xz |
Suppress clang warnings1.2.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libkeccak.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libkeccak.h b/libkeccak.h index f24e58e..745dd2c 100644 --- a/libkeccak.h +++ b/libkeccak.h @@ -999,7 +999,14 @@ libkeccak_hmac_marshal(const struct libkeccak_hmac_state *restrict state, void * size_t written = libkeccak_state_marshal(&state->sponge, data); if (data) { data += written; +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wcast-align" +#endif *(size_t *)data = state->key_length; +#if defined(__clang__) +# pragma clang diagnostic pop +#endif data += sizeof(size_t); memcpy(data, state->key_opad, (state->key_length + 7) >> 3); data += (state->key_length + 7) >> 3; |