mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
The Windows port layer is built with both MSVC and GCC. GCC generated a warning relating to the variable lWaitForYield being set but not used. This change removes the variable.
This commit is contained in:
parent
180d0b8ee3
commit
b49eec35f6
|
@ -641,11 +641,10 @@ void vPortEnterCritical( void )
|
|||
|
||||
void vPortExitCritical( void )
|
||||
{
|
||||
int32_t lMutexNeedsReleasing, lWaitForYield = pdFALSE;
|
||||
int32_t lMutexNeedsReleasing;
|
||||
|
||||
/* The interrupt event mutex should already be held by this thread as it was
|
||||
obtained on entry to the critical section. */
|
||||
|
||||
lMutexNeedsReleasing = pdTRUE;
|
||||
|
||||
if( ulCriticalNesting > portNO_CRITICAL_NESTING )
|
||||
|
@ -677,7 +676,6 @@ int32_t lMutexNeedsReleasing, lWaitForYield = pdFALSE;
|
|||
critical section is exited - so make sure the event is not
|
||||
already signaled. */
|
||||
ResetEvent( pxThreadState->pvYieldEvent );
|
||||
lWaitForYield = pdTRUE;
|
||||
|
||||
/* Mutex will be released now so the (simulated) interrupt can
|
||||
execute, so does not require releasing on function exit. */
|
||||
|
|
Loading…
Reference in a new issue