Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 833 Bytes

compiler-warning-level-1-c4549.md

File metadata and controls

32 lines (25 loc) · 833 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4549
Compiler Warning (level 1) C4549
11/04/2016
C4549
C4549
81a07676-625b-4f58-9b0c-3ee22830b04a

Compiler Warning (level 1) C4549

'operator' : operator before comma has no effect; did you intend 'operator'?

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

// C4549.cpp
// compile with: /W1
#pragma warning (default : 4549)

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

   if ( i == 0, k )   // C4549
   // try the following line instead
   // if ( i == 0 )
      i++;
}