[previous] 4601 [next] The macro '%1s' is the name of an identifier in '<%2s>'.
Identifiers REFERENCE - ISO:C90-7.1.2.1 Reserved Identifiers, ISO:C99-7.1.3 Reserved Identifiers

This macro name is a reserved identifier. It is an identifier declared in the specified library header file (but not as a macro). Is this intended ?

For example:


/*PRQA S 553,2017,3429,3453 ++*/

#define strcat(s1, s2) concatenate(s1, s2)   /* Message 4601 - "strcat" is declared as a function in <string.h> */


MISRA C:2012 Rules applicable to message 4601:

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