* amd64-tdep.c (amd64_push_dummy_call): Remove nested definition

of `tdep'(-Wshadow).
This commit is contained in:
Andrey Smirnov 2011-12-05 03:48:29 +00:00
parent 1850f7144d
commit a5ff835628
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
* amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
of `tdep'(-Wshadow).
2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix compilation --without-expat.

View File

@ -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];