https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111086

--- Comment #2 from Tony Josi <tonyjosinew at gmail dot com> ---
In that case I think the warning should be generated for all the fields in the
struct, why just the first 2 fields (ch1 and ch2 in the example struct in the
bug report)?


Also the warning is listed under [-Wattributes], as it is triggered only if
-Wpacked is added, I would expect it to be listed with [-Wpacked].


It might be also a good idea to modify the help/man page of the -Wpacked to
include about this warning if its a valid one, because currently the
documentation of -Wpacked only talks about effects on struct layout.

Thanks

Reply via email to