Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MISRA_C_2012 rule 9.1 violation #841

Merged
merged 11 commits into from
Dec 7, 2023
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;
kar-rahul-aws marked this conversation as resolved.
Show resolved Hide resolved

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
Loading