mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-13 01:27:48 -04:00
Posix: avoid unused variable warning when preemption is disabled
Fixes: FreeRTOS/FreeRTOS/Source/portable/ThirdParty/GCC/Posix/port.c: In function ‘vPortSystemTickHandler’: FreeRTOS/FreeRTOS/Source/portable/ThirdParty/GCC/Posix/port.c:370:11: error: unused variable ‘pxThreadToResume’ [-Werror=unused-variable] Thread_t *pxThreadToResume; ^~~~~~~~~~~~~~~~
This commit is contained in:
parent
3daf236d07
commit
28a5708578
1 changed files with 3 additions and 0 deletions
3
portable/ThirdParty/GCC/Posix/port.c
vendored
3
portable/ThirdParty/GCC/Posix/port.c
vendored
|
@ -366,8 +366,11 @@ int iRet;
|
||||||
|
|
||||||
static void vPortSystemTickHandler( int sig )
|
static void vPortSystemTickHandler( int sig )
|
||||||
{
|
{
|
||||||
|
#if ( configUSE_PREEMPTION == 1 )
|
||||||
Thread_t *pxThreadToSuspend;
|
Thread_t *pxThreadToSuspend;
|
||||||
Thread_t *pxThreadToResume;
|
Thread_t *pxThreadToResume;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* uint64_t xExpectedTicks; */
|
/* uint64_t xExpectedTicks; */
|
||||||
|
|
||||||
uxCriticalNesting++; /* Signals are blocked in this signal handler. */
|
uxCriticalNesting++; /* Signals are blocked in this signal handler. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue