[previous] 1035 [next] [E] No macro arguments supplied for variable argument list. This is a language extension.
Language extensions

No argument has been provided for substitution in the variable argument list of this variadic macro. ISO:C Standard requires that at least one argument should always be supplied. However some compilers are more tolerant.

Message 1035 is generated to identify use of this language extension.

For example:


/*PRQA S 2017,3120,3199,3203,3205,3408,3429,3447,3453,3625 ++*/

#define VARCAT(var, ...) var##__VA_ARGS__        /* 1030      */

extern void foo(void)
{
    int VARCAT(x);                               /* 0850 1035 */
    int VARCAT(x, 1);

    x = 1;
    x1 = 2;
}

See also:

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