From cb9fd292424291ef4927f5bceb5910bf52a88a58 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 19 Jan 2022 22:39:52 +0100 Subject: Fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- common.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'common.h') diff --git a/common.h b/common.h index 3f9dce0..63d2bb4 100644 --- a/common.h +++ b/common.h @@ -58,6 +58,8 @@ # error Endian is unknown #endif +#define CODE_KILLER(X) (X) + #define A 10 #define B 11 #define C 12 @@ -81,3 +83,9 @@ HIDDEN void libblake_internal_blake2xb_init0(struct libblake_blake2xb_state *sta HIDDEN void libblake_internal_blake2s_output_digest(struct libblake_blake2s_state *state, size_t output_len, unsigned char *output); HIDDEN void libblake_internal_blake2b_output_digest(struct libblake_blake2b_state *state, size_t output_len, unsigned char *output); + +#if defined(__clang__) +# pragma clang diagnostic ignored "-Wunreachable-code" +# pragma clang diagnostic ignored "-Wvla" +# pragma clang diagnostic ignored "-Wimplicit-fallthrough" +#endif -- cgit v1.2.3-70-g09d2