![]() |
![]() |
1528 | ![]() |
||||
![]() | |||||||
| CMA maintenance checks | |||||||
Cross module analysis has determined that objects or functions have been defined with the same name in different modules. One has internal linkage and the other has no linkage. This is quite legitimate, but not recommended because of the potential for confusion.
For example:
file1.cpp
=======
static int cra; // Message 1528
file2.cpp
=======
void foo(void)
{
int cra; // Message 1528
...
}
MISRA C:2012 Rules applicable to message 1528:
| Rule-5.9 (Advisory) | Identifiers that define objects or functions with internal linkage should be unique |
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 |