[previous] 3233 [next] File scope static, '%s', is not explicitly initialized but its value is used.
Declarations and Definitions

This object is being defined with internal linkage. It isn't initialised explicitly and it is never modified in the code. Its value is implicitly initialised to zero and this value appears to be used within the code. Is this really the intended usage ?

For example:


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

static int ax;                              /* Message 3233 */

extern int foo(int n)
{
    int r;

    r = n + ax;

    return r;
}

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