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

tests: Use inline function for dummy definition of test_randomize.

parent 7926debe
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
* testsuite/ecdsa-keygen-test.c (ecc_valid_p): ... old copy. * testsuite/ecdsa-keygen-test.c (ecc_valid_p): ... old copy.
* testsuite/gostdsa-keygen-test.c (ecc_valid_p): ... old copy. * testsuite/gostdsa-keygen-test.c (ecc_valid_p): ... old copy.
* testsuite/testutils.h: Declare it. * testsuite/testutils.h: Declare it.
(test_randomize) [NETTLE_USE_MINI_GMP]: Use inline function rather
than macro for dummy definition, to avoid compile time warnings.
2022-01-10 Niels Möller <nisse@lysator.liu.se> 2022-01-10 Niels Möller <nisse@lysator.liu.se>
......
...@@ -163,7 +163,8 @@ void gmp_randinit_default (struct knuth_lfib_ctx *ctx); ...@@ -163,7 +163,8 @@ void gmp_randinit_default (struct knuth_lfib_ctx *ctx);
void mpz_urandomb (mpz_t r, struct knuth_lfib_ctx *ctx, mp_bitcnt_t bits); void mpz_urandomb (mpz_t r, struct knuth_lfib_ctx *ctx, mp_bitcnt_t bits);
/* This is cheating */ /* This is cheating */
#define mpz_rrandomb mpz_urandomb #define mpz_rrandomb mpz_urandomb
#define test_randomize(rands) 0 static inline int
test_randomize (gmp_randstate_t rands UNUSED) { return 0; }
#else /* !NETTLE_USE_MINI_GMP */ #else /* !NETTLE_USE_MINI_GMP */
int int
test_randomize (gmp_randstate_t rands); test_randomize (gmp_randstate_t rands);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment