mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 11:35:44 +01:00
Fix unused variable in AES selftest when CBC and CFB disabled (#393)
This commit fixes following warning: > CC: aes.c > aes.c: In function 'mbedtls_aes_self_test': > aes.c:1225:19: error: unused variable 'iv' [-Werror=unused-variable] > unsigned char iv[16]; > ^ > cc1: all warnings being treated as errors
This commit is contained in:
parent
efc665f80f
commit
4b541bec0f
@ -1222,7 +1222,9 @@ int mbedtls_aes_self_test( int verbose )
|
||||
int ret = 0, i, j, u, v;
|
||||
unsigned char key[32];
|
||||
unsigned char buf[64];
|
||||
#if defined(MBEDTLS_CIPHER_MODE_CBC) || defined(MBEDTLS_CIPHER_MODE_CFB)
|
||||
unsigned char iv[16];
|
||||
#endif
|
||||
#if defined(MBEDTLS_CIPHER_MODE_CBC)
|
||||
unsigned char prv[16];
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user