diff options
author | Mattias Andrée <maandree@kth.se> | 2022-01-19 22:39:52 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-01-19 22:39:52 +0100 |
commit | cb9fd292424291ef4927f5bceb5910bf52a88a58 (patch) | |
tree | 83c6eadf1986d16c87941396accfba360ea4648c /common.h | |
parent | Add todos about more tests being needed (diff) | |
download | libblake-cb9fd292424291ef4927f5bceb5910bf52a88a58.tar.gz libblake-cb9fd292424291ef4927f5bceb5910bf52a88a58.tar.bz2 libblake-cb9fd292424291ef4927f5bceb5910bf52a88a58.tar.xz |
Fix warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | common.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |