[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;
}


MISRA C:2012 Rules applicable to message 1035:

Rule-1.2  (Advisory) Language extensions should not be used


See also:

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