Skip to content

Commit

Permalink
FW3-155: Add unused parameter attribute to ARM_CM33 functions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
StevenClinardSpanIO committed May 29, 2023
1 parent b5d19b5 commit dc12170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/portable/GCC/ARM_CM33/non_secure/portasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
(
Expand All @@ -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
(
Expand Down

0 comments on commit dc12170

Please sign in to comment.