aboutsummaryrefslogtreecommitdiffstats
path: root/libar2.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-01-19 22:50:49 +0100
committerMattias Andrée <maandree@kth.se>2022-01-19 22:50:49 +0100
commit3e3b07bfcb352e0931a58db2735390c71f1a84a2 (patch)
tree90f0ff7f59277d93f98bea498abedb996e3aa340 /libar2.h
parentImprove portability (diff)
downloadlibar2-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 'libar2.h')
-rw-r--r--libar2.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libar2.h b/libar2.h
index 862723f..2628217 100644
--- a/libar2.h
+++ b/libar2.h
@@ -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