Код: Выделить всё
10:5: note: offset of packed bit-field 'main()::pack_it_in::::two' has changed in GCC 4.4Код: Выделить всё
#pragma GCC diagnostic ignore "-Wpacked-bitfield-compat"
union pack_it_in {
struct
{
uint8_t zero : 3;
uint8_t one : 2;
uint8_t two : 6;
uint8_t three : 4;
uint8_t four : 1;
} __attribute__((packed)) u8_2;
uint16_t u16;
};
#pragma GCC diagnostic pop
Подробнее здесь: https://stackoverflow.com/questions/412 ... itfield-co
Мобильная версия