[previous] 0826 [next] [S] Unexpected ':' found without a preceding '?' in a '#if' or '#elif' expression.
Syntax errors

The expression in this #if or #elif directive is badly formed. A ':' has been encountered without a preceding '?'. For example:


/*PRQA S 0553 ++*/

#define A 1
#define B 2

#if (A ? 0 : B)        /* OK                         */
extern int e1;
#endif

#if (A : B)            /* Message 0826 and also 0898 */
extern int e2;
#endif

See also:

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