mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 15:28:14 +00:00
Prevent unused variable in some configurations
This commit is contained in:
parent
a85edd9415
commit
fb54360f8c
1 changed files with 4 additions and 0 deletions
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in a new issue