[previous] 3457 [next] Macro defines a braced initializer.
Macro Definition

A macro is being defined which appears to be in the form of a braced initializer.

Message 3457 is generated on a macro definition where the replacement list is enclosed in braces {} and does not contain any control statement keywords or semicolons.

For example:


/*PRQA S 553,3408,3410,3429,3435,3456 ++*/

#define M1(A, B) {A, B, A + 1, B + 1}           /* Message 3457 */
#define M2(A)    {A, A + 2, A + 4, A + 6}       /* Message 3457 */
#define M3(A)    {int(A / 3.14159), A}          /* Message 3457 */
#define M4(A)    {A, A + 1, sizeof(int) * A}    /* Message 3457 */

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