From c939f6fcba1cda328c4a21b7c8df596690e36add Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Wed, 20 Jun 2018 11:11:08 +0100 Subject: [PATCH] fixup! New function mbedtls_rsa_get_bitlen In some configurations (like config-mini-tls1_1.h), size is unused. This leads to failures when building with CMake Asan, because that build doesn't use "-Wno-unused-value". Fixes: e01822299624 ("New function mbedtls_rsa_get_bitlen") --- tests/suites/test_suite_pk.function | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/suites/test_suite_pk.function b/tests/suites/test_suite_pk.function index a1d9b0b7a..916b3c54d 100644 --- a/tests/suites/test_suite_pk.function +++ b/tests/suites/test_suite_pk.function @@ -16,6 +16,7 @@ static int rnd_std_rand( void *rng_state, unsigned char *output, size_t len ); static int pk_genkey( mbedtls_pk_context *pk, int size ) { ((void) pk); + ((void) size); #if defined(MBEDTLS_RSA_C) && defined(MBEDTLS_GENPRIME) if( mbedtls_pk_get_type( pk ) == MBEDTLS_PK_RSA )