From 82df32e3fd99608de3df042d69f70bd278306079 Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Fri, 23 Nov 2018 15:11:20 +0000 Subject: [PATCH] psa: Unused key_bits is OK When MD or CMAC are disabled, let the compiler know that it is OK that `key_bits` is set but not used by casting `key_bits` to `(void)`. --- library/psa_crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 291dcdb0d..d100eb1fc 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -1869,6 +1869,7 @@ static psa_status_t psa_mac_setup( psa_mac_operation_t *operation, else #endif /* MBEDTLS_MD_C */ { + (void) key_bits; status = PSA_ERROR_NOT_SUPPORTED; }