diff options
author | Mattias Andrée <maandree@kth.se> | 2021-07-30 18:29:05 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-07-30 18:29:05 +0200 |
commit | 8af021382087293e2205eb15642346c6fdd30a59 (patch) | |
tree | 985a3f4217a55d2e6c46192d94a9ce94cee36ab2 /common.h | |
parent | Do not divide by sizeof(char) (diff) | |
download | libkeccak-8af021382087293e2205eb15642346c6fdd30a59.tar.gz libkeccak-8af021382087293e2205eb15642346c6fdd30a59.tar.bz2 libkeccak-8af021382087293e2205eb15642346c6fdd30a59.tar.xz |
Fix clang warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | common.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -44,9 +44,18 @@ #ifdef NEED_EXPLICIT_BZERO static void *(*volatile my_explicit_memset)(void *, int, size_t) = memset; -static __attribute__((__optimize__("-O0"))) void + +# if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wunknown-attributes" +# endif +__attribute__((__optimize__("-O0"))) +static void my_explicit_bzero(void *ptr, size_t size) { (*my_explicit_memset)(ptr, 0, size); } +# if defined(__clang__) +# pragma clang diagnostic pop +# endif #endif |