Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 828 Bytes

compiler-warning-level-1-c4548.md

File metadata and controls

32 lines (26 loc) · 828 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4548
Compiler Warning (level 1) C4548
11/04/2016
C4548
C4548
2cee817e-e463-4d90-bbd2-de120d48c101

Compiler Warning (level 1) C4548

expression before comma has no effect; expected expression 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 C4548:

// C4548.cpp
// compile with: /W1
#pragma warning (default : 4548)
int main()
{
   int i = 0, k = 0;

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