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)`.
This commit is contained in:
parent
565e0bf49d
commit
82df32e3fd
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue