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).
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ