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 /libblake.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 'libblake.h')
-rw-r--r-- | libblake.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -5,6 +5,12 @@ #include <stddef.h> #include <stdint.h> +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wpadded" +# pragma clang diagnostic ignored "-Wvla" +#endif + #ifndef LIBBLAKE_PUBLIC__ # if defined(_MSC_VER) # define LIBBLAKE_PUBLIC__ __declspec(dllexport) @@ -76,7 +82,6 @@ LIBBLAKE_PUBLIC__ void libblake_blake512_digest(struct libblake_blake512_state * const char *suffix, unsigned char output[static LIBBLAKE_BLAKE512_OUTPUT_SIZE]); LIBBLAKE_PUBLIC__ LIBBLAKE_PURE__ size_t libblake_blake512_digest_get_required_input_size(size_t len, size_t bits, const char *suffix); - struct libblake_blake2s_params { uint_least8_t digest_len; /* in bytes, [1, 32] */ uint_least8_t key_len; /* in bytes, [0, 32] */ @@ -222,4 +227,8 @@ LIBBLAKE_PUBLIC__ void libblake_blake2xb_digest(const struct libblake_blake2xb_s uint_least8_t len /* desired hash MIN(length - i * 64, 64) */, unsigned char output[static len] /* output for hash offset by i * 64 */); +#if defined(__clang__) +# pragma clang diagnostic pop +#endif + #endif |