gdb/
Fix false compilation warning. * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
This commit is contained in:
parent
58af5af403
commit
cafe75b06b
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2012-03-16 Yao Qi <yao@codesourcery.com>
|
||||
Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
Fix false compilation warning.
|
||||
* gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
|
||||
|
||||
2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
|
||||
Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
|
|
|
@ -869,8 +869,9 @@ print_one_vtable (struct gdbarch *gdbarch, struct value *value,
|
|||
|
||||
for (i = 0; i <= max_voffset; ++i)
|
||||
{
|
||||
/* Initialize it just to avoid a GCC false warning. */
|
||||
CORE_ADDR addr = 0;
|
||||
struct value *vfn;
|
||||
CORE_ADDR addr;
|
||||
volatile struct gdb_exception ex;
|
||||
|
||||
printf_filtered ("[%d]: ", i);
|
||||
|
|
Loading…
Add table
Reference in a new issue