From 73180fe692721d41383092f52a38d25d7f447d73 Mon Sep 17 00:00:00 2001 From: Hien Huynh Date: Tue, 31 Dec 2024 02:09:26 +0000 Subject: [PATCH 1/2] FSPRA-4078 Fix build-warning function was declared but never referenced --- library/sha256.c | 1 + 1 file changed, 1 insertion(+) diff --git a/library/sha256.c b/library/sha256.c index 159acccaeb3..e369403bcfa 100644 --- a/library/sha256.c +++ b/library/sha256.c @@ -616,6 +616,7 @@ static int mbedtls_a64_crypto_sha256_has_support(void) return supported; } +MBEDTLS_MAYBE_UNUSED static size_t mbedtls_internal_sha256_process_many(mbedtls_sha256_context *ctx, const uint8_t *msg, size_t len) { From e674c1c0afcd26a3167672ac0d1ccc66e24187d2 Mon Sep 17 00:00:00 2001 From: Hien Huynh Date: Fri, 3 Jan 2025 02:24:09 +0000 Subject: [PATCH 2/2] FSPRA-4078 Fix build-warning function was declared but never referenced --- library/sha256.c | 1 + 1 file changed, 1 insertion(+) diff --git a/library/sha256.c b/library/sha256.c index e369403bcfa..5ef99179806 100644 --- a/library/sha256.c +++ b/library/sha256.c @@ -579,6 +579,7 @@ int mbedtls_internal_sha256_process_c(mbedtls_sha256_context *ctx, #if !defined(MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_ONLY) +MBEDTLS_MAYBE_UNUSED static size_t mbedtls_internal_sha256_process_many_c( mbedtls_sha256_context *ctx, const uint8_t *data, size_t len) {