分享方式:


編譯器警告 (層級 4) C4408

anonymousstruct 或 union 未宣告任何資料成員

匿名結構或等位必須至少有一個資料成員。

下列範例會產生 C4408:

// C4408.cpp
// compile with: /W4 /LD
static union
{
   // int i;
};
// a named union can have no data members
// } MyUnion;