Пример

struct MyStruct {

unsigned char field:2;

};

Решение
Использовать для битовых полей только типы int.

struct MyStruct {

unsigned int field:2;
 

};