https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86243
--- Comment #2 from Hannes Hauswedell ---
(In reply to Jonathan Wakely from comment #1)
> (In reply to Hannes Hauswedell from comment #0)
> > Note that I am not even setting -Wall or -Wextra.
>
> As documented, -Wattributes is enabled by default
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86243
--- Comment #1 from Jonathan Wakely ---
(In reply to Hannes Hauswedell from comment #0)
> Note that I am not even setting -Wall or -Wextra.
As documented, -Wattributes is enabled by default and you need to use
-Wno-attributes to disable it.