Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 761 Bytes

compiler-warning-level-1-c4144.md

File metadata and controls

28 lines (25 loc) · 761 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4144
Compiler Warning (level 1) C4144
11/04/2016
C4144
C4144
a37b445d-dbc6-43b4-8d95-ffd0e4225464

Compiler Warning (level 1) C4144

'expression' : relational expression as switch expression

The specified relational expression was used as the control expression of a switch statement. The associated case statements will be offered Boolean values. The following sample generates C4144:

// C4144.cpp
// compile with: /W1
int main()
{
   int i = 0;
   switch(!i) {   // C4144, remove the ! to resolve
      case 1:
         break;
      default:
         break;
   }
}