Skip to content
Snippets Groups Projects
Commit 78699da7 authored by Niels Möller's avatar Niels Möller
Browse files

Workaround for assert_maybe to not trigger clang analyzer warnings.

parent cf8a68ef
No related branches found
No related tags found
No related merge requests found
...@@ -88,9 +88,11 @@ ...@@ -88,9 +88,11 @@
/* For asserts that are incompatible with sc tests. Currently used /* For asserts that are incompatible with sc tests. Currently used
only by ECC code. */ only by ECC code. */
#if WITH_EXTRA_ASSERTS #if WITH_EXTRA_ASSERTS
#define assert_maybe(x) assert(x) # define assert_maybe(x) assert(x)
#elif defined(__clang_analyzer__)
# define assert_maybe(x) ((void)(x))
#else #else
#define assert_maybe(x) # define assert_maybe(x)
#endif #endif
extern const struct ecc_curve _nettle_secp_192r1; extern const struct ecc_curve _nettle_secp_192r1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment