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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>it should be only a warning since it can work if the return value isn't used 
>anywhere

No that is for C, for C++: "The point being that it's undefined behaviour to
/return/ from such a function, not to /write/ such a function."
See comment #5

*** This bug has been marked as a duplicate of bug 43943 ***

Reply via email to