Fix: avoid set but unused variable warning in pxPortInitialiseStack (#1320)

This commit is contained in:
razrbro 2025-09-16 22:49:04 -07:00 committed by GitHub
parent 44ae6cf61a
commit 692c4b070f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -229,6 +229,7 @@ StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
/* Ensure that there is enough space to store Thread_t on the stack. */ /* Ensure that there is enough space to store Thread_t on the stack. */
ulStackSize = ( size_t ) ( pxTopOfStack + 1 - pxEndOfStack ) * sizeof( *pxTopOfStack ); ulStackSize = ( size_t ) ( pxTopOfStack + 1 - pxEndOfStack ) * sizeof( *pxTopOfStack );
configASSERT( ulStackSize > sizeof( Thread_t ) ); configASSERT( ulStackSize > sizeof( Thread_t ) );
( void ) ulStackSize; /* suppress set but not used warning */
thread->pxCode = pxCode; thread->pxCode = pxCode;
thread->pvParams = pvParameters; thread->pvParams = pvParameters;