[previous] 3436 [next] Macro definition hides previously declared identifier.
Preprocessing

A macro is being defined which will hide an identifier that has previously been declared. This can cause confusion. Is it intended?

For example:


/*PRQA S 2017,2211,2213,3211,3408,3602 ++*/

enum et {RED, WHITE, BLUE};

#define RED 5                         /* Message 3436 */

int x = RED;

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