Commit 5de1a1eb by Jason Merrill Committed by Jason Merrill

re PR c++/27371 (Does not warn about unused function result (__attribute__((warn_unused_result))))

        PR c++/27371
        * cvt.c (convert_to_void): Enable previous change.

From-SVN: r116765
parent 05d36da1
2006-09-07 Jason Merrill <jason@redhat.com> 2006-09-07 Jason Merrill <jason@redhat.com>
PR c++/27371
* cvt.c (convert_to_void): Enable previous change.
PR c++/26957 PR c++/26957
* method.c (use_thunk): Clear DECL_HAS_VALUE_EXPR_P on copied * method.c (use_thunk): Clear DECL_HAS_VALUE_EXPR_P on copied
parms. parms.
......
...@@ -897,7 +897,7 @@ convert_to_void (tree expr, const char *implicit) ...@@ -897,7 +897,7 @@ convert_to_void (tree expr, const char *implicit)
we don't use it and don't need to destroy it. We'll still we don't use it and don't need to destroy it. We'll still
allocate space for it in expand_call or declare_return_variable, allocate space for it in expand_call or declare_return_variable,
but we don't need to track it through all the tree phases. */ but we don't need to track it through all the tree phases. */
if (0 && TARGET_EXPR_IMPLICIT_P (expr) if (TARGET_EXPR_IMPLICIT_P (expr)
&& TYPE_HAS_TRIVIAL_DESTRUCTOR (TREE_TYPE (expr))) && TYPE_HAS_TRIVIAL_DESTRUCTOR (TREE_TYPE (expr)))
{ {
tree init = TARGET_EXPR_INITIAL (expr); tree init = TARGET_EXPR_INITIAL (expr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment