Compiler Warning (level 4) C4214
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Warning (level 4) C4214

Error Message

nonstandard extension used : bit field types other than int

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


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

int main()

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

© 2015 Microsoft