MISRA C-2012 Control Flow Expressions (MISRA C-2012 Rule 14.2)
- misra_c_2012_rule_14_2_violation: The expression i used in the for loop clauses is modified in the loop body.
for( i = 0; i < FLASH; i++ )
{
if( name.see[i] == 0xFF )
{
name.see[ i ] = faultId | mnemonicType;
- modify_expr: Modifying the expression i.
i = FLASH-1; /* terminate loop */
}
}