https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58798
Olaf van der Spek changed:
What|Removed |Added
CC||olafvdspek at gmail dot com
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58798
--- Comment #8 from Jonathan Wakely ---
(In reply to Szikra from comment #3)
> 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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58798
Eric Gallager changed:
What|Removed |Added
Blocks||44209
--- Comment #7 from Eric Gallager
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58798
Eric Gallager changed:
What|Removed |Added
Keywords||diagnostic
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58798
--- Comment #5 from Szikra ---
(In reply to Jonathan Wakely from comment #4)
> Because the warning isn't controlled by the -Wpacked option. If it was, it
> would say [-Wpacked] after the warning. I think that's a bug, every warning
> should be
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58798
--- Comment #4 from Jonathan Wakely ---
(In reply to Szikra from comment #3)
> 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?
Because the warning isn't
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58798
--- Comment #3 from Szikra ---
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58798
--- Comment #2 from Szikra ---
Created attachment 40615
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40615=edit
preprocessed test case
Compiled with
g++ --save-temps -std=gnu++11 -fpack-struct eeprom.cpp -o eeprom
eeprom.cpp: In
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58798
Szikra changed:
What|Removed |Added
CC||steven.spark at gmail dot com
--- Comment #1