diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-17 19:43:51 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-17 19:43:51 +0100 |
commit | e1ff5cc788f1f418e75d63b8e4c4fe5554fbe2c8 (patch) | |
tree | 1639a0ba6c51ab27166b0171f75dad6c5300fe4b /libar2_decode_params.c | |
parent | bump version (diff) | |
download | libar2-1.2.tar.gz libar2-1.2.tar.bz2 libar2-1.2.tar.xz |
Some fixes1.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libar2_decode_params.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libar2_decode_params.c b/libar2_decode_params.c index 273de55..d2d62b5 100644 --- a/libar2_decode_params.c +++ b/libar2_decode_params.c @@ -66,7 +66,14 @@ libar2_decode_params(const char *str, struct libar2_argon2_parameters *params, c if (*str++ != '$') goto einval; } else { +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wassign-enum" +#endif params->version = 0; /* implicit LIBAR2_ARGON2_VERSION_10 */ +#if defined(__clang__) +# pragma clang diagnostic pop +#endif } if (str[0] != 'm' || str[1] != '=') |