Příklad

struct MyStruct {

unsigned char field:2;

};

Řešení
Jako pole bitů použijte pouze typy intervalu.

struct MyStruct {

unsigned int field:2;
 

};