https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114833
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-04-24 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. The code which calls warn_function_returns_nonnull (or maybe warn_function_returns_nonnull should do the check) does not check for the attribute already there.