Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Warning (level 4) C4213
Collapse the table of content
Expand the table of content

Compiler Warning (level 4) C4213

Error Message

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).

Community Additions

ADD
Show:
© 2015 Microsoft