MISRAC2012-Rule-5.9
In this section:
Synopsis
(Advisory) Identifiers that define objects or functions with internal linkage should be unique.
Enabled by default
No
Severity/Certainty
Low/Medium

Full description
An internal identifier name was found that is not unique.
This is a link analysis check.
Coding standards
- MISRA C:2012 Rule-5.9
(Advisory) Identifiers that define objects or functions with internal linkage should be unique
Code examples
The following code example fails the check and will give a warning:
static int x;
void example(void) {
int x;
}
The following code example passes the check and will not give a warning about this issue:
static int x;
void example(void) {
int y;
}