From ae12fc180fd8dee1707b8de9d866d855fcede7d4 Mon Sep 17 00:00:00 2001 From: tony-josi-aws Date: Tue, 31 Oct 2023 16:10:06 +0530 Subject: [PATCH] fix unused variables --- source/FreeRTOS_IP.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/FreeRTOS_IP.c b/source/FreeRTOS_IP.c index 41552e63a..89404edab 100644 --- a/source/FreeRTOS_IP.c +++ b/source/FreeRTOS_IP.c @@ -268,8 +268,11 @@ static void prvProcessIPEventsAndTimers( void ) TickType_t xNextIPSleep; FreeRTOS_Socket_t * pxSocket; struct freertos_sockaddr xAddress; - BaseType_t xCurQueueIndex = ipconfigEVENT_QUEUES - 1; - BaseType_t xQueueReceiveRet; + + #if ( ipconfigMULTI_PRIORITY_EVENT_QUEUES == 1 ) + BaseType_t xQueueReceiveRet; + BaseType_t xCurQueueIndex = ipconfigEVENT_QUEUES - 1; + #endif ipconfigWATCHDOG_TIMER();