Compiler Warning (level 1) C4546
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

Compiler Warning (level 1) C4546

Error Message

function call before comma missing argument list

The compiler detected an ill-formed comma expression.

This warning is off by default. For more information, see Compiler Warnings That Are Off by Default.

Example

The following sample generates C4546:

// C4546.cpp
// compile with: /W1
#pragma warning (default : 4546)
void f(int i) {
   i++;
}

int main() {
   int i = 0, k = 0;

   if ( f, k )   // C4546
   // try the following line instead
   // if ( f(i), k )
      i++;
}
Show:
© 2016 Microsoft