[Bug c++/27371] [4.1/4.2 Regression] Does not warn about unused function result (__attribute__((warn_unused_result)))
jason at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Sep 6 05:59:00 GMT 2006
------- Comment #3 from jason at gcc dot gnu dot org 2006-09-06 05:59 -------
This worked in 4.0 by accident, because of the NRV implementation I had in that
release which pushed aggregate return values into the argument list of a call.
This had some problems, so I later changed it to use a MODIFY_EXPR, which
properly expresses what's going on, but interferes with this warning.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27371
More information about the Gcc-bugs
mailing list