Skip to content

Commit 82df32e

Browse files
committed
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)`.
1 parent 565e0bf commit 82df32e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/psa_crypto.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,6 +1869,7 @@ static psa_status_t psa_mac_setup( psa_mac_operation_t *operation,
18691869
else
18701870
#endif /* MBEDTLS_MD_C */
18711871
{
1872+
(void) key_bits;
18721873
status = PSA_ERROR_NOT_SUPPORTED;
18731874
}
18741875

0 commit comments

Comments
 (0)