Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 879 Bytes

compiler-warning-level-1-c4547.md

File metadata and controls

32 lines (27 loc) · 879 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4547
Compiler Warning (level 1) C4547
11/04/2016
C4547
C4547
3edf1c2e-c0d5-444d-ae83-44a7cce24bb2

Compiler Warning (level 1) C4547

'operator' : operator before comma has no effect; expected operator with side-effect

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 C4547:

// C4547.cpp
// compile with: /W1
#pragma warning (default : 4547)
int i = 0;
int j = 1;
int main() {
   int l = (i != i,0);   // C4547
   // try the following line instead
   // int l = (i != i);
   // or
   // int l = ((void)(i != i),0);
}