[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:2004 Rules applicable to message 1035:

Rule  1.1  (Required) All code shall conform to ISO/IEC 9899:1990 C programming language, ISO 9899, amended and corrected by ISO/IEC 9899/COR1:1995, ISO/IEC 9899/AMD1:1995, and ISO/IEC 9899/COR2: 1996192


See also:

QA·C Source Code Analyser 8.1
MISRA-C:2004 Compliance Module 3.2
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index Contents