![]() |
![]() |
4606 | ![]() |
||||
![]() | |||||||
| Identifiers | REFERENCE - ISO:C90-7.1.2.1 Reserved Identifiers, ISO:C99-7.1.3 Reserved Identifiers | ||||||
This
typedef name is a reserved identifier.
It is the same as another ordinary identifier (not a typedef), declared in the specified library header file.
This is most unwise; if the library header file is ever included in this code, there will certainly be a conflict.
For example:
/*PRQA S 553,2017,3205,3602,3625 ++*/
typedef signed char acos; /* Message 4606 - "acos" is the name of a function declared in <math.h> */
typedef int stdin; /* Message 4606 - "stdin" is the name of an object declared in <stdio.h> */
MISRA-C:2004 Rules applicable to message 4606:
| Rule 20.2 (Required) | The names of standard library macros, objects and functions shall not be reused. |
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 |