Compiler Warning (level 1) C4545
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Warning (level 1) C4545

Error Message

expression before comma evaluates to a function which is missing an 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.

The following sample generates C4545:

// C4545.cpp
// compile with: /W1
#pragma warning (default : 4545)

void f() { }

int main()
   *(&f), 10;   // C4545
   // try the following line instead
   // (*(&f))(), 10;
© 2015 Microsoft