[previous] 3603 [next] Using 'extern' in the definition of a global variable.
K+R compatibility

The extern storage-class specifier is being applied to the definition of an object with external linkage. In early versions of the C language, the keyword extern always signified a declaration.

Message 3603 is functionally identical to message 0347 except that message 3603 is only generated when the "-k+r x" option is disabled and message 0347 is only generated when this option is enabled.

For example:


/*PRQA S 3207,3210,3211,3408,3447 ++*/

int        i = 1;                   /*              */
extern int j = 1;                   /* Message 3603 */
static int k = 1;                   /*              */
extern int m = 1;                   /* Message 3603 */
extern int n;                       /*              */

See also:

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