[previous] 0823 [next] [S] Unexpected '#else' or '#elif' directive follows '#else'.
Syntax errors REFERENCE - ISO:C90-6.8 Preprocessing Directives

An unexpected #elif or #else directive has been encountered. A #elif or #else directive cannot appear after a #else directive within a #if group.

For example:


/*PRQA S 553,3210,3447,3608  ++*/

#if 1
extern int e1;
#else
extern int e2;
#elif 1           /* Message 0823 - #elif not allowed here */
extern int e3;
#endif

#if 1
extern int e4;
#else
extern int e5;
#else             /* Message 0823 - #else not allowed here */
extern int e6;
#endif

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