[Bug c++/82600] [8 Regression] Address of local variable returned [-Werror=return-local-addr] when building mozilla-central

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Oct 18 12:58:00 GMT 2017


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Andi from comment #0)
> Building firefox with gcc8 trunk i get this error:

This is a warning, not an error. 

If you use -Werror to cause compilation to fail that's your choice, but it's
still just a warning as far as we're concerned.

If you can't build because you choose to use -Werror then don't use -Werror.


More information about the Gcc-bugs mailing list