From a634f5af2f57db8028d75ccebc478146d42e3151 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 30 Jan 2022 18:16:00 -0700 Subject: 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/i386-fbsd-tdep.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'gdb/i386-fbsd-tdep.c') diff --git a/gdb/i386-fbsd-tdep.c b/gdb/i386-fbsd-tdep.c index 6a656dd..16ffd57 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 -- cgit v1.1