![]() |
![]() |
4608 | ![]() |
||||
![]() | |||||||
| Identifiers | REFERENCE - ISO:C90-7.1.2.1 Reserved Identifiers, ISO:C99-7.1.3 Reserved Identifiers | ||||||
This is a reserved identifier. A
tag of the same name is declared in the specified library header file.
This is dangerous if the declarations are not consistent.
Even if they are, it may still be wiser to declare the tag using the relevant library header file.
For example:
/*PRQA S 553,2017,2213,2216 ++*/
struct tm { int a; int b; }; /* Message 4608 - "tm" is the name of a tag declared in <time.h> */
MISRA C:2012 Rules applicable to message 4608:
| Rule-21.2 (Required) | A reserved identifier or macro name shall not be declared |
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 |