From de8fd80cf997516710c4f30e17e346e531cb2a4f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 22 Mar 2022 11:20:28 -0600 Subject: [PATCH] Remove two unused variables I found a couple of spots that declare a symtab_and_line but don't actually use it. I think this probably isn't detected as unused because it has a constructor. --- gdb/csky-tdep.c | 1 - gdb/sparc-tdep.c | 1 - 2 files changed, 2 deletions(-) diff --git a/gdb/csky-tdep.c b/gdb/csky-tdep.c index cba0065fa53..0d0381c293d 100644 --- a/gdb/csky-tdep.c +++ b/gdb/csky-tdep.c @@ -1526,7 +1526,6 @@ static CORE_ADDR csky_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) { CORE_ADDR func_addr, func_end; - struct symtab_and_line sal; const int default_search_limit = 128; /* See if we can find the end of the prologue using the symbol table. */ diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c index 03242ed9866..78a4d44ed5d 100644 --- a/gdb/sparc-tdep.c +++ b/gdb/sparc-tdep.c @@ -1126,7 +1126,6 @@ sparc_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, static CORE_ADDR sparc32_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR start_pc) { - struct symtab_and_line sal; CORE_ADDR func_addr; struct sparc_frame_cache cache; -- 2.30.2