[Bug c++/55698] gcc does not report warning if operator not used : control reaches end of non-void function [-Wreturn-type]
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Oct 18 10:21:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55698
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |manu at gcc dot gnu.org
Resolution|--- |DUPLICATE
--- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
If the operator is not used, we do not warn. And it is not used because you
have
return 0;
return a==b;
and this is what we should warn about.
*** This bug has been marked as a duplicate of bug 46476 ***
More information about the Gcc-bugs
mailing list