From 45221ffdc4a38f5fe84963ce81e1ffacf49370a0 Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Thu, 23 Nov 2023 15:45:29 +0000 Subject: [PATCH] Add casts to local input / output initializers Signed-off-by: David Horstmann --- library/psa_crypto_core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/psa_crypto_core.h b/library/psa_crypto_core.h index 215b22710e..91d2059e81 100644 --- a/library/psa_crypto_core.h +++ b/library/psa_crypto_core.h @@ -520,7 +520,7 @@ typedef struct psa_crypto_local_input_s { size_t length; } psa_crypto_local_input_t; -#define PSA_CRYPTO_LOCAL_INPUT_INIT { NULL, 0 } +#define PSA_CRYPTO_LOCAL_INPUT_INIT ((psa_crypto_local_input_t) { NULL, 0 }) /** Allocate a local copy of an input buffer. * @@ -550,7 +550,7 @@ typedef struct psa_crypto_local_output_s { size_t length; } psa_crypto_local_output_t; -#define PSA_CRYPTO_LOCAL_OUTPUT_INIT { NULL, NULL, 0 } +#define PSA_CRYPTO_LOCAL_OUTPUT_INIT ((psa_crypto_local_output_t) { NULL, NULL, 0 }) /** Allocate a local copy of an output buffer. *