Correctly mark unused arguments when MAC algorithms are compiled out

Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
This commit is contained in:
Steven Cooreman 2021-05-10 09:47:05 +02:00
parent 0c23965977
commit b29902ac9f

View file

@ -347,6 +347,9 @@ static psa_status_t mac_setup( mbedtls_psa_mac_operation_t *operation,
else else
#endif /* BUILTIN_ALG_HMAC */ #endif /* BUILTIN_ALG_HMAC */
{ {
(void) attributes;
(void) key_buffer;
(void) key_buffer_size;
status = PSA_ERROR_NOT_SUPPORTED; status = PSA_ERROR_NOT_SUPPORTED;
} }
@ -430,6 +433,8 @@ static psa_status_t mac_update(
{ {
/* This shouldn't happen if `operation` was initialized by /* This shouldn't happen if `operation` was initialized by
* a setup function. */ * a setup function. */
(void) input;
(void) input_length;
return( PSA_ERROR_BAD_STATE ); return( PSA_ERROR_BAD_STATE );
} }
} }