[previous] 4622 [next] The identifier '%1s' may be defined as a macro in '<%2s>'.
Identifiers REFERENCE - ISO:C99-7.8 Format conversion of integer types <inttypes.h>, ISO:C99-Integer types <stdint.h>

This is a reserved identifier. It may be the name of a macro defined in the specified library header file. Is this intended ?

According to the ISO:C99 standard, a macro 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.

This is most unwise. If the header file is subsequently included in this code, there could well be a conflict.

For example:


/*PRQA S 553,2017,2213,3602 ++*/

enum XT {INT32_C};         /* Message 4622 - "INT32_C" could be defined as a macro in <stdint.h> */


No MISRA C:2012 Rules applicable to message 4622


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