[previous] 1529 [next] Object with no linkage has same identifier as another object with static storage duration but no linkage.
CMA maintenance checks

Cross module analysis has determined that objects or functions have been defined with the same name in different modules. Neither identifier is declared with linkage but at least one has been declared with static storage duration. This is quite legitimate, but not recommended because of the potential for confusion.

For example:

file1.cpp
=======
void f1(void)
{
    static int cra;    // Message 1529 
    ...
}

file2.cpp
=======
void f2(void)
{
    static int cra;    // Message 1529 
    ...
}


No MISRA C:2012 Rules applicable to message 1529


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