[previous] 4600 [next] The macro '%1s' is also defined in '<%2s>'.
Identifiers REFERENCE - ISO:C90-7.1.2.1 Reserved Identifiers, ISO:C99-7.1.3 Reserved Identifiers

This is a reserved identifier. A macro of this name is defined in the specified library header file.

This is dangerous if the definitions are not consistent. Even if they are, it may still be wiser to #define the macro using the relevant library header file.

For example:


/*PRQA S 553,2017 ++*/

#define NULL (void *)0         /* Message 4600 - "NULL" is a macro which is defined in <stddef.h> */


MISRA C:2012 Rules applicable to message 4600:

Rule-21.1  (Required) #define and #undef shall not be used on a reserved identifier or reserved macro name


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