From 5adf52c72deaeaab74ba87969d00607d8d39f99e Mon Sep 17 00:00:00 2001 From: Steven Cooreman Date: Thu, 4 Mar 2021 18:09:49 +0100 Subject: [PATCH] Correctly void potentially unused arguments Signed-off-by: Steven Cooreman --- library/psa_crypto_hash.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/psa_crypto_hash.c b/library/psa_crypto_hash.c index bd3b57e6e7..cd0d15ee0a 100644 --- a/library/psa_crypto_hash.c +++ b/library/psa_crypto_hash.c @@ -202,6 +202,8 @@ psa_status_t mbedtls_psa_hash_clone( break; #endif default: + (void) source_operation; + (void) target_operation; return( PSA_ERROR_NOT_SUPPORTED ); } @@ -273,7 +275,8 @@ psa_status_t mbedtls_psa_hash_update( break; #endif default: - (void)input; + (void) input; + (void) input_length; return( PSA_ERROR_BAD_STATE ); } @@ -355,6 +358,7 @@ psa_status_t mbedtls_psa_hash_finish( break; #endif default: + (void) hash; return( PSA_ERROR_BAD_STATE ); } status = mbedtls_to_psa_error( ret );