From a634f5af2f57db8028d75ccebc478146d42e3151 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 30 Jan 2022 18:16:00 -0700 Subject: [PATCH] Remove unused variables in fbsd-tdep.c files i386-fbsd-tdep.c and amd64-fbsd-tdep.c failed to build on my x86-64 Fedora 34 machine, using the system gcc, after a recent patch. These two files now have unused variables, which provokes a warning in this configuration. I'm checking in this patch to remove the unused variables. --- gdb/amd64-fbsd-tdep.c | 2 -- gdb/i386-fbsd-tdep.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/gdb/amd64-fbsd-tdep.c b/gdb/amd64-fbsd-tdep.c index f87c976dd61..da5c297902d 100644 --- a/gdb/amd64-fbsd-tdep.c +++ b/gdb/amd64-fbsd-tdep.c @@ -158,8 +158,6 @@ amd64_fbsd_sigframe_init (const struct tramp_frame *self, struct trad_frame_cache *this_cache, CORE_ADDR func) { - struct gdbarch *gdbarch = get_frame_arch (this_frame); - enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); CORE_ADDR sp = get_frame_register_unsigned (this_frame, AMD64_RSP_REGNUM); CORE_ADDR mcontext_addr = (sp diff --git a/gdb/i386-fbsd-tdep.c b/gdb/i386-fbsd-tdep.c index 6a656ddf09c..16ffd576323 100644 --- a/gdb/i386-fbsd-tdep.c +++ b/gdb/i386-fbsd-tdep.c @@ -145,8 +145,6 @@ i386_fbsd_sigframe_init (const struct tramp_frame *self, struct trad_frame_cache *this_cache, CORE_ADDR func) { - struct gdbarch *gdbarch = get_frame_arch (this_frame); - enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); CORE_ADDR sp = get_frame_register_unsigned (this_frame, I386_ESP_REGNUM); CORE_ADDR mcontext_addr = (sp -- 2.30.2