[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;
}


No MISRA C:2012 Rules applicable to message 3207


See also:

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