[binutils-gdb] Remove unused variables from print_frame_arg_vars
Tom Tromey via Gdb-cvs <[email protected]>
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=35a2129bdcd0571223bb3d4f523b42ef6cd63611 commit 35a2129bdcd0571223bb3d4f523b42ef6cd63611 Author: Tom Tromey <[email protected]> Date: Mon Apr 6 13:07:16 2026 -0600 Remove unused variables from print_frame_arg_vars 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. Diff: --- gdb/stack.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gdb/stack.c b/gdb/stack.c index 889efe62e0d..6fcc26417e2 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -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))) {