mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-10 04:05:38 +00:00
Prevent unused variable in some configurations
This commit is contained in:
parent
a85edd9415
commit
fb54360f8c
|
@ -35,6 +35,8 @@ void cipher_invalid_param_unconditional( )
|
||||||
*( mbedtls_cipher_list() ) );
|
*( mbedtls_cipher_list() ) );
|
||||||
size_t size_t_var;
|
size_t size_t_var;
|
||||||
|
|
||||||
|
(void)valid_mode; /* In some configurations this is unused */
|
||||||
|
|
||||||
mbedtls_cipher_init( &valid_ctx );
|
mbedtls_cipher_init( &valid_ctx );
|
||||||
mbedtls_cipher_setup( &valid_ctx, valid_info );
|
mbedtls_cipher_setup( &valid_ctx, valid_info );
|
||||||
mbedtls_cipher_init( &invalid_ctx );
|
mbedtls_cipher_init( &invalid_ctx );
|
||||||
|
@ -157,6 +159,8 @@ void cipher_invalid_param_conditional( )
|
||||||
|
|
||||||
size_t size_t_var;
|
size_t size_t_var;
|
||||||
|
|
||||||
|
(void)valid_mode; /* In some configurations this is unused */
|
||||||
|
|
||||||
/* mbedtls_cipher_init() */
|
/* mbedtls_cipher_init() */
|
||||||
TEST_VALID_PARAM( mbedtls_cipher_init( &valid_ctx ) );
|
TEST_VALID_PARAM( mbedtls_cipher_init( &valid_ctx ) );
|
||||||
TEST_INVALID_PARAM( mbedtls_cipher_init( NULL ) );
|
TEST_INVALID_PARAM( mbedtls_cipher_init( NULL ) );
|
||||||
|
|
Loading…
Reference in a new issue