From ed9a4948b9af89bfea7d62c0a0e20d5c36ad1de1 Mon Sep 17 00:00:00 2001 From: Patrick Wildt Date: Wed, 15 May 2024 18:22:17 +0000 Subject: [PATCH] Silence gcc 12.2.0 warning Unfortunately this compiler complains about a variable potentially being used un-initialized. Silence the warning by initializing it to a sane default. Signed-off-by: Patrick Wildt --- library/psa_crypto_cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/psa_crypto_cipher.c b/library/psa_crypto_cipher.c index 93a6b93f1cba..173ca291e261 100644 --- a/library/psa_crypto_cipher.c +++ b/library/psa_crypto_cipher.c @@ -26,7 +26,7 @@ const mbedtls_cipher_info_t *mbedtls_cipher_info_from_psa( mbedtls_cipher_id_t *cipher_id) { mbedtls_cipher_mode_t mode; - mbedtls_cipher_id_t cipher_id_tmp; + mbedtls_cipher_id_t cipher_id_tmp = MBEDTLS_CIPHER_ID_NONE; if (PSA_ALG_IS_AEAD(alg)) { alg = PSA_ALG_AEAD_WITH_SHORTENED_TAG(alg, 0);