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

The macro referred to in this #ifdef or #ifndef directive was un-defined in a previous #undef directive.

For example:


/*PRQA S 3211,3408 ++*/

#define AA 1

#define ONE 1
#define TWO 2
#define THREE 3
#define FOUR 4

#undef ONE                                            /* 0841           */
#undef TWO                                            /* 0841           */
#undef THREE                                          /* 0841           */
#undef FOUR                                           /* 0841           */

#ifdef ONE                                            /* 0891           */
#endif

#ifndef TWO                                           /* 0891           */
#endif

#if defined THREE                                     /* 0891           */
#endif

#if !defined FOUR                                     /* 0891           */
#endif

int x = 0;


No MISRA C:2012 Rules applicable to message 0891


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