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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Lionel Landwerlin from comment #0)
> I may be missing something obvious here, but if this is a programming error,
> I find it weird this thing never got caught before.

As the bug reporting instructions say, you should use at least -Wall, possibly
-Wextra:

test.c: In function ‘GC_approx_sp1’:
test.c:8:9: warning: function returns address of local variable
[-Wreturn-local-addr]
   return((ptr_t)&dummy);
         ^

Reply via email to