https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90735
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Last reconfirmed| |2021-10-6 Target Milestone|--- |12.0 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> --- Done for GCC 12 in g:e9e2bad7251477db92ab9ebcdc010f9282dd9890. The warning now points to the closing curly: pr90735.c: In function âfâ: pr90735.c:13:1: warning: function may return address of local variable [-Wreturn-local-addr] 13 | } | ^ pr90735.c:5:7: note: declared here 5 | int c; | ^