* c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
authorMarek Polacek <polacek@redhat.com>
Tue, 4 Jul 2017 06:53:08 +0000 (06:53 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 4 Jul 2017 06:53:08 +0000 (06:53 +0000)
From-SVN: r249943

gcc/c-family/ChangeLog
gcc/c-family/c-warn.c

index 74009cf8dfc78eab248aff31afc590c77ff411db..5f32102128c6c63fba624b323c2e629933626445 100644 (file)
@@ -1,3 +1,7 @@
+2017-07-04  Marek Polacek  <polacek@redhat.com>
+
+       * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
+
 2017-06-28  Martin Liska  <mliska@suse.cz>
 
        PR ipa/81128
index 5d67395c5020230cff3572093c155a94bc3913c4..b9378c2dbe2276066c1e57b2102f61cba22a3453 100644 (file)
@@ -465,7 +465,6 @@ warn_if_unused_value (const_tree exp, location_t locus)
     case TARGET_EXPR:
     case CALL_EXPR:
     case TRY_CATCH_EXPR:
-    case WITH_CLEANUP_EXPR:
     case EXIT_EXPR:
     case VA_ARG_EXPR:
       return false;