MISRAC2012-Rule-5.8
In this section:
Synopsis
(Required) Identifiers that define objects or functions with external linkage shall be unique.
Enabled by default
Yes
Severity/Certainty
Low/Medium

Full description
One or more external identifier names were found that are not unique.
This is a link analysis check.
Coding standards
- MISRA C:2012 Rule-5.8
(Required) Identifiers that define objects or functions with external linkage shall be unique
Code examples
The following code example fails the check and will give a warning:
/* file1.c */
#include <stdint.h>
/* Non-compliant if "foo" declared elsewhere with external linkage */
static void foo ( void )
{
int16_t index; /* "index" has no linkage */
}
The following code example passes the check and will not give a warning about this issue:
#include <stdint.h>
/* "unique_foo" not defined elsewhere */
static void unique_foo ( void )
{
int16_t index; /* "index" has no linkage */
}