]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
coroutines: Remove unused private member in cp_coroutine_transform
authorMartin Jambor <mjambor@suse.cz>
Wed, 25 Jun 2025 14:56:58 +0000 (16:56 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 25 Jun 2025 14:57:08 +0000 (16:57 +0200)
When building GCC with clang, it warns that the private member suffix
in class cp_coroutine_transform (defined in gcc/cp/coroutines.h) is
not used which indeed looks like it is the case.  This patch therefore
removes it.

gcc/cp/ChangeLog:

2025-06-24  Martin Jambor  <mjambor@suse.cz>

* coroutines.h (class cp_coroutine_transform): Remove member
orig_fn_body.

gcc/cp/coroutines.h

index 919dc9ab06b6efb09d04b32a1374650e771ecd4b..fcc464579157abf6b041f673272377143f6c87e3 100644 (file)
@@ -100,7 +100,6 @@ public:
 
 private:
   tree orig_fn_decl;            /* The original function decl.  */
-  tree orig_fn_body = NULL_TREE; /* The original function body.  */
   location_t fn_start = UNKNOWN_LOCATION;
   location_t fn_end = UNKNOWN_LOCATION;
   tree resumer = error_mark_node;