Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 702 Bytes

compiler-warning-level-4-c4213.md

File metadata and controls

33 lines (27 loc) · 702 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 4) C4213
Compiler Warning (level 4) C4213
11/04/2016
C4213
C4213
59fc3f61-ebd2-499e-99d7-f57bec11eda1

Compiler Warning (level 4) C4213

nonstandard extension used : cast on l-value

With the default Microsoft extensions (/Ze), you can use casts on the left side of an assignment statement.

Example

// C4213.c
// compile with: /W4
void *a;
void f()
{
   int   i[3];
   a = &i;
   *(( int * )a )++ = 3;  // C4213
}

int main()
{
}

Such casts are invalid under ANSI compatibility (/Za).