]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/27371 (Does not warn about unused function result (__attribute__((warn_unus...
authorJason Merrill <jason@redhat.com>
Thu, 7 Sep 2006 22:47:34 +0000 (18:47 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 7 Sep 2006 22:47:34 +0000 (18:47 -0400)
        PR c++/27371
        * cvt.c (convert_to_void): Enable previous change.

From-SVN: r116765

gcc/cp/ChangeLog
gcc/cp/cvt.c

index 06e5fec236f1c5e822ce6b199fd14be9f56e9689..546746448629498fca55576ce7172e9b7f3b11cb 100644 (file)
@@ -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.
index 52b5be46eeb77e4c314eeff865ddab400cdcae5d..fea5768f8aedfe774814f0e7442e775258cbf02e 100644 (file)
@@ -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);