From: Niels Möller Date: Sun, 9 Jun 2024 09:48:37 +0000 (+0200) Subject: Avoid warnings for assert_maybe. X-Git-Tag: nettle_3.10rc1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4b730730daa279bf88f88e7ad37d5b28159c0b4;p=thirdparty%2Fnettle.git Avoid warnings for assert_maybe. --- diff --git a/ChangeLog b/ChangeLog index e3b49c33..a8ef177b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-06-09 Niels Möller + + * ecc-internal.h (assert_maybe) [!WITH_EXTRA_ASSERTS]: Cast to + void, to avoid warnings. + 2024-06-05 Niels Möller * config.guess: Update to 2024-01-01 version. diff --git a/ecc-internal.h b/ecc-internal.h index 7c3b8396..0e03215c 100644 --- a/ecc-internal.h +++ b/ecc-internal.h @@ -87,10 +87,8 @@ only by ECC code. */ #if WITH_EXTRA_ASSERTS # define assert_maybe(x) assert(x) -#elif defined(__clang_analyzer__) -# define assert_maybe(x) ((void)(x)) #else -# define assert_maybe(x) +# define assert_maybe(x) ((void)(x)) #endif extern const struct ecc_curve _nettle_secp_192r1;