[previous] 3207 [next] File scope static, '%s', is not used, and could be removed.
Redundancy REFERENCE - ISO:C90-6.1.2.2 Linkages of Identifiers

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

For example:


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

static int s1 = 0;                      /* Message 3207 */
static int s2 = 0;                      /* Message 3229 */

extern void foo(void)
{
    s2 = 5;
    return;
}

See also:

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