diff options
author | Mattias Andrée <maandree@kth.se> | 2022-01-19 22:50:49 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-01-19 22:50:49 +0100 |
commit | 3e3b07bfcb352e0931a58db2735390c71f1a84a2 (patch) | |
tree | 90f0ff7f59277d93f98bea498abedb996e3aa340 /libar2.h | |
parent | Improve portability (diff) | |
download | libar2-3e3b07bfcb352e0931a58db2735390c71f1a84a2.tar.gz libar2-3e3b07bfcb352e0931a58db2735390c71f1a84a2.tar.bz2 libar2-3e3b07bfcb352e0931a58db2735390c71f1a84a2.tar.xz |
Fix warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libar2.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -5,6 +5,11 @@ #include <stddef.h> #include <stdint.h> +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wpadded" +#endif + /* for internal use { */ #ifndef LIBAR2_PUBLIC__ @@ -643,4 +648,8 @@ void libar2_erase(volatile void *mem, size_t size); LIBAR2_PUBLIC__ int libar2_hash(void *hash, void *msg, size_t msglen, struct libar2_argon2_parameters *params, struct libar2_context *ctx); +#if defined(__clang__) +# pragma clang diagnostic pop +#endif + #endif |