[gcc r16-1679] coroutines: Remove unused private member in cp_coroutine_transform
Martin Jambor
jamborm@gcc.gnu.org
Wed Jun 25 14:57:34 GMT 2025
https://gcc.gnu.org/g:8b4b0f7af730ccda59e344d36c5be2eb5855bfd6
commit r16-1679-g8b4b0f7af730ccda59e344d36c5be2eb5855bfd6
Author: Martin Jambor <mjambor@suse.cz>
Date: Wed Jun 25 16:56:58 2025 +0200
coroutines: Remove unused private member in cp_coroutine_transform
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.
Diff:
---
gcc/cp/coroutines.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/gcc/cp/coroutines.h b/gcc/cp/coroutines.h
index 919dc9ab06b6..fcc464579157 100644
--- a/gcc/cp/coroutines.h
+++ b/gcc/cp/coroutines.h
@@ -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;
More information about the Gcc-cvs
mailing list