[previous] 4607 [next] The enum constant '%1s' has the same name as another ordinary identifier in '<%2s>'.
Identifiers REFERENCE - ISO:C90-7.1.2.1 Reserved Identifiers, ISO:C99-7.1.3 Reserved Identifiers

This enumeration constant is a reserved identifier. It is the same as another ordinary identifier (not an enum constant), 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,3602 ++*/

enum {cos = 55};            /* Message 4607 - "cos" is the name of a function declared in <math.h> */

See also:

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents