Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 814 Bytes

compiler-warning-level-1-c4545.md

File metadata and controls

32 lines (25 loc) · 814 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4545
Compiler Warning (level 1) C4545
11/04/2016
C4545
C4545
43f8f34f-ed46-4661-95c0-c588c577ff73

Compiler Warning (level 1) C4545

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