[previous] 0898 [next] [S] Unexpected ')' or ':' in '#if' or '#elif' expression.
Syntax errors

The expression in this #if or #elif directive is badly formed. An unexpected ':' or ')' has been encountered. For example:


/*PRQA S 553 ++*/
#define A 1
#define B 2

#if A : B                          /* Message 0898 */
extern int e1;
#endif


#if A + B)                         /* Message 0898 */
extern int e2;
#endif


No MISRA C:2012 Rules applicable to message 0898


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