[Bug c/94389] __attribute__((warn_unused_result)) will warn if the result is discarded as an optimisation
segher at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 30 11:49:40 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94389
Segher Boessenkool <segher at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
CC| |segher at gcc dot gnu.org
Last reconfirmed| |2020-03-30
--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Earlier than that, we have
;; Function get_flags (null)
;; enabled by -tree-original
{
return text_mode ();, 0;
}
which already has lost (and looks funny btw).
Confirmed btw.
More information about the Gcc-bugs
mailing list