[previous] 4624 [next] The ordinary identifier '%1s' may be defined as a typedef in '<%2s>'.
Identifiers REFERENCE - ISO:C99-Integer types <stdint.h>

This 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.

If <stdint.h> is ever #included in this code, there could easily be a conflict.

For example:


/*PRQA S 553,2017,3211,3408 ++*/

int int16_t;            /* Message 4624 - "int16_t" could be defined as a typedef in <stdint.h> */


No MISRA C:2012 Rules applicable to message 4624


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