https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58798
--- Comment #3 from Szikra <steven.spark at gmail dot com> --- The warning is still there if I use the -Wno-packed option: g++ -std=gnu++11 -fpack-struct -Wno-packed eeprom.cpp -o eeprom Why? I have found a suggestion to hide warning about ignored attributes: #pragma clang diagnostic ignored "-Wignored-attributes" which doesn't seem to have a GCC equivalent. :(