diff options
author | Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com> | 2023-12-07 12:26:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 12:26:44 +0300 |
commit | 93ef558fa8484211bd1d78c06bbd14aae1b2ece5 (patch) | |
tree | 27e6295123f432044a6f19df12a153f66fbc9c15 /timers.c | |
parent | 51437bf9433a0043f29921348097069fdd4ae4b9 (diff) |
Declare variable without initializer (#841)
Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
Co-authored-by: chinglee-iot <61685396+chinglee-iot@users.noreply.github.com>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Diffstat (limited to 'timers.c')
-rw-r--r-- | timers.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -943,12 +943,12 @@ static void prvProcessReceivedCommands( void ) { - DaemonTaskMessage_t xMessage; + DaemonTaskMessage_t xMessage = { 0 }; Timer_t * pxTimer; BaseType_t xTimerListsWereSwitched; TickType_t xTimeNow; - while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */ + while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) { #if ( INCLUDE_xTimerPendFunctionCall == 1 ) { |