[previous] 3411 [next] Macro defined with unbalanced brackets, parentheses or braces.
Macro Definition

This macro definition contains brackets or parentheses which are not balanced. This is either a very unusual macro or, more probably, a typing mistake.

For example:


/*PRQA S 553,2017,3412,3429,3435,3453,3456 ++*/

#define M1(X) ((X) + (X)                        /* 3411 */
#define M2(X) {int x; foo(&x); bar(x);          /* 3411 */
#define M3(X) (buf[X]1])                        /* 3411 */



No MISRA C:2012 Rules applicable to message 3411


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