Build: fix unused argument warning
tfm_crypto_api.c is added to tfm_api_ns target as a PUBLIC source. When
linking tfm_api_ns to a target using Werror, the warning causes build
error.
Signed-off-by: Gergely Kovacs <Gergely.Kovacs2@arm.com>
Change-Id: Idf1267222c6fa1ea9c83a02d96e737fbb052e323
diff --git a/interface/src/tfm_crypto_api.c b/interface/src/tfm_crypto_api.c
index 4fc4eca..f53fd1a 100644
--- a/interface/src/tfm_crypto_api.c
+++ b/interface/src/tfm_crypto_api.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2023, Arm Limited. All rights reserved.
+ * Copyright (c) 2018-2024, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -1668,6 +1668,9 @@
const uint8_t *expected_output,
size_t output_length)
{
+ (void)operation;
+ (void)expected_output;
+ (void)output_length;
/* To be implemented when the PSA backend supports it */
return PSA_ERROR_NOT_SUPPORTED;
}
@@ -1676,6 +1679,8 @@
psa_key_derivation_operation_t *operation,
psa_key_id_t expected)
{
+ (void)operation;
+ (void)expected;
/* To be implemented when the PSA backend supports it */
return PSA_ERROR_NOT_SUPPORTED;
}