From: Simon Marchi Date: Tue, 16 Nov 2021 02:38:44 +0000 (-0500) Subject: gdb: remove unused variables in xtensa-linux-nat.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=39cdfdb2614ae5654f5aa77792085b37cb342929;p=binutils-gdb.git gdb: remove unused variables in xtensa-linux-nat.c While build-testing this file, the compiler complained about these two unused variables, remove them. Change-Id: I3c54f779f12c16ef6184af58aca75eaad042ce4e --- diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c index 54f1a0df0fe..7bc1689b9f5 100644 --- a/gdb/xtensa-linux-nat.c +++ b/gdb/xtensa-linux-nat.c @@ -204,7 +204,6 @@ fetch_gregs (struct regcache *regcache, int regnum) { int tid = regcache->ptid ().lwp (); gdb_gregset_t regs; - int areg; if (ptrace (PTRACE_GETREGS, tid, 0, (long) ®s) < 0) { @@ -223,7 +222,6 @@ store_gregs (struct regcache *regcache, int regnum) { int tid = regcache->ptid ().lwp (); gdb_gregset_t regs; - int areg; if (ptrace (PTRACE_GETREGS, tid, 0, (long) ®s) < 0) {