]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove unused local variable from c_type_print_base_struct_union
authorTom Tromey <tom@tromey.com>
Mon, 9 Feb 2026 14:33:59 +0000 (07:33 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 9 Feb 2026 14:33:59 +0000 (07:33 -0700)
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.

gdb/c-typeprint.c

index cfacf48fe2dc860a7c0a1ab51d3548e908038f23..5d78aa3e1a74090195bece84b9b4659a076a45d4 100644 (file)
@@ -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<char> mangled_name_holder;
              const char *physname = TYPE_FN_FIELD_PHYSNAME (f, j);
              int is_full_physname_constructor =
                TYPE_FN_FIELD_CONSTRUCTOR (f, j)