[previous] 0829 [next] [S] Could not find '#endif' preprocessing directive to close '#if...'.
Syntax errors REFERENCE - ISO:C90-6.8 Preprocessing Directives - Syntax

A #if block remains open at the end of this translation unit because no terminating #endif has been encountered. For example:


/*PRQA S 2017,3211,3408,3619 ++*/

#define HAS  (1)

#if HAS

int x;

#ifdef TWO
#define XX (12)
#endif
int y;                                            /* 0829 */


No MISRA C:2012 Rules applicable to message 0829


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