]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove unused variables from print_frame_arg_vars
authorTom Tromey <tromey@adacore.com>
Mon, 6 Apr 2026 19:07:16 +0000 (13:07 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 7 Apr 2026 16:42:22 +0000 (10:42 -0600)
I noticed a couple of unused variables in print_frame_arg_vars.  These
aren't detected by the compiler, presumably due to having a
destructor.

gdb/stack.c

index 889efe62e0df1c64d32d89173018e26d3453bcb8..6fcc26417e29dafaef53c880ddf8398ff97260c5 100644 (file)
@@ -2484,8 +2484,6 @@ print_frame_arg_vars (const frame_info_ptr &frame,
   struct print_variable_and_value_data cb_data;
   struct symbol *func;
   std::optional<CORE_ADDR> pc;
-  std::optional<compiled_regex> preg;
-  std::optional<compiled_regex> treg;
 
   if (!(pc = get_frame_pc_if_available (frame)))
     {