Remove the option gcc -pedanticif you do not want to receive a warning.
In C99, gccwarning c is issued -pedantic, but it is permitted to have a specific implementation type for a bit field (for example, unsigned char).
(C99, 6.7.2.1p4) "The bitfield must be of a type that is a qualified or unqualified version of _Bool, signed int, unsigned int, or some other implementation-specific type."
C90 int, unsigned int signed int.
(C90, 6.5.2.1) " , int, unsigned int signed int"
, C90 C99 C ( undefined C90, C undefined). gcc -pedantic .