[previous] 2465 [next] This 'for' loop will only be executed once.
Dataflow - Control flow

This for loop will only be executed once and is therefore redundant. Is this intended ?

For example:


/*PRQA S 2017,3120,3408 ++*/

extern void foo(void)
{
   int j;

   for (j = 10; j <= 10; j++)              /* Message 2465 */
   {
      /* ... */
   }
}


No MISRA C:2012 Rules applicable to message 2465


QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents