From b14c4a533da1a433e2f354753b3e7429ef475d61 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Mon, 11 Feb 2019 18:23:42 +0100 Subject: [PATCH] Fix build with gcc -Wshadow --- programs/test/benchmark.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/test/benchmark.c b/programs/test/benchmark.c index e90ef2de7..7524f5cb4 100644 --- a/programs/test/benchmark.c +++ b/programs/test/benchmark.c @@ -232,12 +232,12 @@ static int myrand( void *rng_state, unsigned char *output, size_t len ) #define CHECK_AND_CONTINUE( R ) \ { \ - int ret = ( R ); \ - if( ret == MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED ) { \ + int CHECK_AND_CONTINUE_ret = ( R ); \ + if( CHECK_AND_CONTINUE_ret == MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED ) { \ mbedtls_printf( "Feature not supported. Skipping.\n" ); \ continue; \ } \ - else if( ret != 0 ) { \ + else if( CHECK_AND_CONTINUE_ret != 0 ) { \ mbedtls_exit( 1 ); \ } \ }