https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84063
Bug ID: 84063
Summary: Misleading diagnostic for ignored attributes under
-Wattributes
Product: gcc
Version: 8.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: rimvydas.jas at gmail dot com
Target Milestone: ---
Created attachment 43253
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43253&action=edit
testcase
Wouldn't -Wignored-attributes be better for this test case?
gcc80 -c test_packed_aligned.c
test_packed_aligned.c:42:16: warning: ignoring attribute 'aligned' because it
conflicts with attribute 'packed' [-Wattributes]
struct usb_device_request req_reset_tt
__attribute__((__aligned__(4)));