From a5ff83562895fa7659dc0f8802febf9b2b5d377b Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Mon, 5 Dec 2011 03:48:29 +0000 Subject: [PATCH] * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition of `tdep'(-Wshadow). --- gdb/ChangeLog | 4 ++++ gdb/amd64-tdep.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 256353ca43b..7be3d1778c6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-12-05 Andrey Smirnov + * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition + of `tdep'(-Wshadow). + 2011-12-03 Jan Kratochvil Fix compilation --without-expat. diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index bd31e542438..803a20f1a7e 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -878,7 +878,6 @@ amd64_push_dummy_call (struct gdbarch *gdbarch, struct value *function, /* Pass "hidden" argument". */ if (struct_return) { - struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); /* The "hidden" argument is passed throught the first argument register. */ const int arg_regnum = tdep->call_dummy_integer_regs[0]; -- 2.30.2