]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Avoid warnings for assert_maybe.
authorNiels Möller <nisse@lysator.liu.se>
Sun, 9 Jun 2024 09:48:37 +0000 (11:48 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Sun, 9 Jun 2024 09:48:37 +0000 (11:48 +0200)
ChangeLog
ecc-internal.h

index e3b49c33af9324b93bac1f1ac06bd28c0bd48c47..a8ef177ba79e21aa80132f8a5f4e968b85aafeb7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-06-09  Niels Möller  <nisse@lysator.liu.se>
+
+       * ecc-internal.h (assert_maybe) [!WITH_EXTRA_ASSERTS]: Cast to
+       void, to avoid warnings.
+
 2024-06-05  Niels Möller  <nisse@lysator.liu.se>
 
        * config.guess: Update to 2024-01-01 version.
index 7c3b83968de4738fc2a5228721f658eb67c6599b..0e03215c2d71d781fae810597b3e715caf124aab 100644 (file)
    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;