From b29902ac9f11fdaaa17317b654625a5d1e7e4e89 Mon Sep 17 00:00:00 2001 From: Steven Cooreman Date: Mon, 10 May 2021 09:47:05 +0200 Subject: [PATCH] Correctly mark unused arguments when MAC algorithms are compiled out Signed-off-by: Steven Cooreman --- library/psa_crypto_mac.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/psa_crypto_mac.c b/library/psa_crypto_mac.c index 69724727a6..9db9a37e52 100644 --- a/library/psa_crypto_mac.c +++ b/library/psa_crypto_mac.c @@ -347,6 +347,9 @@ static psa_status_t mac_setup( mbedtls_psa_mac_operation_t *operation, else #endif /* BUILTIN_ALG_HMAC */ { + (void) attributes; + (void) key_buffer; + (void) key_buffer_size; status = PSA_ERROR_NOT_SUPPORTED; } @@ -430,6 +433,8 @@ static psa_status_t mac_update( { /* This shouldn't happen if `operation` was initialized by * a setup function. */ + (void) input; + (void) input_length; return( PSA_ERROR_BAD_STATE ); } }