[Bug c++/58798] class with a class reference member generates unjustified warning
steven.spark at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Jan 29 16:21:00 GMT 2017
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. :(
More information about the Gcc-bugs
mailing list