From 8af021382087293e2205eb15642346c6fdd30a59 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 30 Jul 2021 18:29:05 +0200 Subject: Fix clang warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libkeccak_state_unmarshal.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libkeccak_state_unmarshal.c') diff --git a/libkeccak_state_unmarshal.c b/libkeccak_state_unmarshal.c index 6922a3e..4e0df28 100644 --- a/libkeccak_state_unmarshal.c +++ b/libkeccak_state_unmarshal.c @@ -2,12 +2,17 @@ #include "common.h" +#if defined(__clang__) +# pragma clang diagnostic ignored "-Wcast-align" +#endif + + /** * Unmarshal a `struct libkeccak_state` from a buffer * * @param state The slot for the unmarshalled state, must not be * initialised (memory leak otherwise), can be `NULL` - * @param data The input buffer + * @param data_ The input buffer * @return The number of bytes read from `data`, 0 on error */ size_t -- cgit v1.2.3-70-g09d2