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
This commit is contained in:
parent
05d36da1b4
commit
5de1a1eb07
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
2006-09-07 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/27371
|
||||
* cvt.c (convert_to_void): Enable previous change.
|
||||
|
||||
PR c++/26957
|
||||
* method.c (use_thunk): Clear DECL_HAS_VALUE_EXPR_P on copied
|
||||
parms.
|
||||
|
|
|
@ -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
|
||||
allocate space for it in expand_call or declare_return_variable,
|
||||
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)))
|
||||
{
|
||||
tree init = TARGET_EXPR_INITIAL (expr);
|
||||
|
|
Loading…
Add table
Reference in a new issue