![]() |
![]() |
4623 | ![]() |
||||
![]() | |||||||
| Identifiers | REFERENCE - ISO:C99-Integer types <stdint.h> | ||||||
This
typedef name is a reserved identifier.
It may be the name of a typedef declared in <stdint.h>.
Is this intended ?
According to the ISO:C99 standard, a typedef with this name could be defined in the system library, although this would depend on the size of the integer types which happen to be supported in the implementation.
Defining the typedef outside the library header file is dangerous if the definitions are not consistent; but even if they are, it may be wiser to declare the typedef by #including <stdint.h>.
For example:
/*PRQA S 553,2017,3205 ++*/
typedef short int16_t; /* Message 4623 - The typedef "int16_t" might be defined in <stdint.h> */
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |