Skip to content

Commit

Permalink
Declare variable without initializer (#841)
Browse files Browse the repository at this point in the history
Co-authored-by: Soren Ptak <[email protected]>
Co-authored-by: chinglee-iot <[email protected]>
Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>
  • Loading branch information
4 people authored Dec 7, 2023
1 parent 51437bf commit 93ef558
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -7412,7 +7412,8 @@ static void prvResetNextTaskUnblockTime( void )
int iSnprintfReturnValue;
BaseType_t xOutputBufferFull = pdFALSE;
UBaseType_t uxArraySize, x;
configRUN_TIME_COUNTER_TYPE ulTotalTime, ulStatsAsPercentage;
configRUN_TIME_COUNTER_TYPE ulTotalTime = 0;
configRUN_TIME_COUNTER_TYPE ulStatsAsPercentage;

traceENTER_vTaskGetRunTimeStatistics( pcWriteBuffer, uxBufferLength );

Expand Down
4 changes: 2 additions & 2 deletions timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 93ef558

Please sign in to comment.