From dc12170574c9f34d273e82f06741728b8e26c632 Mon Sep 17 00:00:00 2001 From: Steven Clinard Date: Sun, 28 May 2023 23:43:20 -0700 Subject: [PATCH] FW3-155: Add unused parameter attribute to ARM_CM33 functions portasm.c in non_secure ARM_CM33 port generates some unused parameter warnings. Suppressing this warning seems to require touching something from the parent repo, and touching this specific file seems like the lightest touch. --- Source/portable/GCC/ARM_CM33/non_secure/portasm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/portable/GCC/ARM_CM33/non_secure/portasm.c b/Source/portable/GCC/ARM_CM33/non_secure/portasm.c index 3424b423..9e3a047d 100644 --- a/Source/portable/GCC/ARM_CM33/non_secure/portasm.c +++ b/Source/portable/GCC/ARM_CM33/non_secure/portasm.c @@ -439,7 +439,7 @@ void SVC_Handler( void ) /* __attribute__ (( naked )) PRIVILEGED_FUNCTION */ } /*-----------------------------------------------------------*/ -void vPortAllocateSecureContext( uint32_t ulSecureStackSize ) /* __attribute__ (( naked )) */ +void vPortAllocateSecureContext( __attribute__( ( unused ) ) uint32_t ulSecureStackSize ) /* __attribute__ (( naked )) */ { __asm volatile ( @@ -452,7 +452,7 @@ void vPortAllocateSecureContext( uint32_t ulSecureStackSize ) /* __attribute__ ( } /*-----------------------------------------------------------*/ -void vPortFreeSecureContext( uint32_t * pulTCB ) /* __attribute__ (( naked )) PRIVILEGED_FUNCTION */ +void vPortFreeSecureContext( __attribute__( ( unused ) ) uint32_t * pulTCB ) /* __attribute__ (( naked )) PRIVILEGED_FUNCTION */ { __asm volatile (