[previous] 3112 [next] This statement has no side-effect - it can be removed.
Redundancy

This statement has no side effects and so it is useless, Perhaps there is a mistake here ?

For example:


/*PRQA S 2017,3204,3227,3408 ++*/

void foo(int x)
{
    int n = 0;

    n == x;                      /* Message 3112 */


}

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