Skip to content

Commit 1612072

Browse files
razrbroThomas Quiniou
authored andcommitted
Fix: avoid set but unused variable warning in pxPortInitialiseStack (#1320)
1 parent 34e7bc1 commit 1612072

File tree

1 file changed

+1
-0
lines changed
  • portable/ThirdParty/GCC/Posix

1 file changed

+1
-0
lines changed

portable/ThirdParty/GCC/Posix/port.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
229229
/* Ensure that there is enough space to store Thread_t on the stack. */
230230
ulStackSize = ( size_t ) ( pxTopOfStack + 1 - pxEndOfStack ) * sizeof( *pxTopOfStack );
231231
configASSERT( ulStackSize > sizeof( Thread_t ) );
232+
( void ) ulStackSize; /* suppress set but not used warning */
232233

233234
thread->pxCode = pxCode;
234235
thread->pvParams = pvParameters;

0 commit comments

Comments
 (0)