Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 686 Bytes

compiler-warning-level-4-c4214.md

File metadata and controls

30 lines (24 loc) · 686 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 4) C4214
Compiler Warning (level 4) C4214
11/04/2016
C4214
C4214
9b8db279-1f12-4a6b-a923-2db22acd1947

Compiler Warning (level 4) C4214

nonstandard extension used : bit field types other than int

With the default Microsoft extensions (/Ze), bitfield structure members can be of any integer type.

Example

// C4214.c
// compile with: /W4
struct bitfields
{
   unsigned short j:4;  // C4214
};

int main()
{
}

Such bit fields are invalid under ANSI compatibility (/Za).