[previous] 3229 [next] File scope static, '%s', is written but never used.
Redundancy

This object is declared with internal linkage It is assigned a value but the value isn't used anywhere within this translation unit. Is it really required ?

For example:


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


static int b;                   /* Message 3229 */

void f1(const int n)
{
    b = n;
    return;
}

void f2(const int n)
{
    b = n + 1;
    return;
}

See also:

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