Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 738 Bytes

compiler-warning-level-4-c4201.md

File metadata and controls

32 lines (27 loc) · 738 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 4) C4201
Compiler Warning (level 4) C4201
11/04/2016
C4201
C4201
6156f508-9393-4d77-9e73-1ec3e1c32d0d

Compiler Warning (level 4) C4201

nonstandard extension used : nameless struct/union

Under Microsoft extensions (/Ze), you can specify a structure without a declarator as members of another structure or union. These structures generate an error under ANSI compatibility (/Za).

Example

// C4201.cpp
// compile with: /W4
struct S
{
   float y;
   struct
   {
      int a, b, c;  // C4201
   };
} *p_s;

int main()
{
}