Correctly void potentially unused arguments

Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
This commit is contained in:
Steven Cooreman 2021-03-04 18:09:49 +01:00
parent b1777312da
commit 5adf52c72d

View file

@ -202,6 +202,8 @@ psa_status_t mbedtls_psa_hash_clone(
break; break;
#endif #endif
default: default:
(void) source_operation;
(void) target_operation;
return( PSA_ERROR_NOT_SUPPORTED ); return( PSA_ERROR_NOT_SUPPORTED );
} }
@ -273,7 +275,8 @@ psa_status_t mbedtls_psa_hash_update(
break; break;
#endif #endif
default: default:
(void)input; (void) input;
(void) input_length;
return( PSA_ERROR_BAD_STATE ); return( PSA_ERROR_BAD_STATE );
} }
@ -355,6 +358,7 @@ psa_status_t mbedtls_psa_hash_finish(
break; break;
#endif #endif
default: default:
(void) hash;
return( PSA_ERROR_BAD_STATE ); return( PSA_ERROR_BAD_STATE );
} }
status = mbedtls_to_psa_error( ret ); status = mbedtls_to_psa_error( ret );