![]() |
![]() |
0630 | ![]() |
||||
![]() | |||||||
| Explicitly undefined | REFERENCE - ISO:C90-6.7 External Definitions - Semantics | ||||||
A global object or function has been defined more than once. It is possible to have multiple declarations, but there should only ever be one definition. Multiple definitions are not allowed, even if the definitions are identical. For example:
/*PRQA S 2017,3211,3408 ++*/
int number=1;
/* ... */
int number=1; /* Message 0630 */
extern void foo(void)
{
}
extern void foo(void) /* Message 0630 */
{
}
MISRA-C:2004 Rules applicable to message 0630:
| Rule 1.2 (Required) | No reliance shall be placed on undefined or unspecified behaviour. |
| Rule 8.9 (Required) | An identifier with external linkage shall have exactly one external definition. |
See also:
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA-C:2004 Compliance Module 3.2 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index | Contents |