[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 */
   {
      /* ... */
   }
}

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents