1
0
mirror of https://github.com/FreeRTOS/FreeRTOS-Kernel.git synced 2025-10-20 21:39:57 +08:00

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>
This commit is contained in:
Rahul Kar
2023-12-07 14:56:44 +05:30
committed by GitHub
parent 51437bf943
commit 93ef558fa8
2 changed files with 4 additions and 3 deletions

View File

@@ -7412,7 +7412,8 @@ static void prvResetNextTaskUnblockTime( void )
int iSnprintfReturnValue; int iSnprintfReturnValue;
BaseType_t xOutputBufferFull = pdFALSE; BaseType_t xOutputBufferFull = pdFALSE;
UBaseType_t uxArraySize, x; 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 ); traceENTER_vTaskGetRunTimeStatistics( pcWriteBuffer, uxBufferLength );

View File

@@ -943,12 +943,12 @@
static void prvProcessReceivedCommands( void ) static void prvProcessReceivedCommands( void )
{ {
DaemonTaskMessage_t xMessage; DaemonTaskMessage_t xMessage = { 0 };
Timer_t * pxTimer; Timer_t * pxTimer;
BaseType_t xTimerListsWereSwitched; BaseType_t xTimerListsWereSwitched;
TickType_t xTimeNow; 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 ) #if ( INCLUDE_xTimerPendFunctionCall == 1 )
{ {