[previous] 4603 [next] The object/function '%1s'is being defined with the same name as an ordinary identifier 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. It is the same as another ordinary identifier declared in the specified library header file.

This is most unwise; if the library header file is ever included in this code, there will certainly be a conflict.

For example:


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

int tan = 0;                /* Message 4603 - "tan" is defined as a function in <math.h> */


MISRA C:2012 Rules applicable to message 4603:

Rule-21.2  (Required) A reserved identifier or macro name shall not be declared


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