From: Tom Tromey Date: Mon, 9 Feb 2026 14:33:59 +0000 (-0700) Subject: Remove unused local variable from c_type_print_base_struct_union X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d43c2117dd38ffad304e2589214ffa610389006;p=thirdparty%2Fbinutils-gdb.git Remove unused local variable from c_type_print_base_struct_union In my earlier patch to remove TYPE_FN_FIELD_STUB, I didn't notice that the local variable mangled_name_holder is now unused and can be removed. The compiler didn't notice, either, I assume because it has a constructor and destructor. --- diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index cfacf48fe2d..5d78aa3e1a7 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -1105,7 +1105,6 @@ c_type_print_base_struct_union (struct type *type, struct ui_file *stream, for (j = 0; j < len2; j++) { - gdb::unique_xmalloc_ptr mangled_name_holder; const char *physname = TYPE_FN_FIELD_PHYSNAME (f, j); int is_full_physname_constructor = TYPE_FN_FIELD_CONSTRUCTOR (f, j)