diff --git a/tasks.c b/tasks.c index 0f9807fb8..73d27c302 100644 --- a/tasks.c +++ b/tasks.c @@ -4674,7 +4674,7 @@ BaseType_t xTaskCatchUpTicks( TickType_t xTicksToCatchUp ) { #if ( configNUMBER_OF_CORES == 1 ) { - TCB_t * const pxCurrentTCB = prvGetCurrentTaskTCB(); + TCB_t * const pxConstCurrentTCB = prvGetCurrentTaskTCB(); /* Preemption is on, but a context switch should only be * performed if the unblocked task has a priority that is