[previous] 0889 [next] #undef refers to a macro that has previously been #undef'd.
Preprocessing

This #undef is redundant, The macro to which it refers has been un-defined in a previous #undef directive.

Redundant #undef directives are permitted in the C language; they are simply ignored However, it would be better to remove them unless they exist for some good reason.

For example:


/*PRQA S 841,3211,3408 ++ */

#define DEF 2

int x = DEF;

#undef DEF

#undef DEF                            /* Message 0889 */

#undef AAA                            /* No message   */

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