[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 */


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