Prevent unused variable in some configurations
@@ -35,6 +35,8 @@ void cipher_invalid_param_unconditional( )
*( mbedtls_cipher_list() ) );
size_t size_t_var;
+ (void)valid_mode; /* In some configurations this is unused */
+
mbedtls_cipher_init( &valid_ctx );
mbedtls_cipher_setup( &valid_ctx, valid_info );
mbedtls_cipher_init( &invalid_ctx );
@@ -157,6 +159,8 @@ void cipher_invalid_param_conditional( )
size_t size_t_var;
+ (void)valid_mode; /* In some configurations this is unused */
+
/* mbedtls_cipher_init() */
TEST_VALID_PARAM( mbedtls_cipher_init( &valid_ctx ) );
TEST_INVALID_PARAM( mbedtls_cipher_init( NULL ) );
