https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106571
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-08-09 Ever confirmed|0 |1 Severity|normal |enhancement Status|UNCONFIRMED |WAITING Component|other |c --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This example seems not to be correct as this is section is not needed on the declaration only the definition. If this is the example, I think the warning is incorrect and should not be implemented in GCC.