Fix false compilation warning.
	* gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
This commit is contained in:
Jan Kratochvil 2012-03-16 08:18:09 +00:00
parent 58af5af403
commit cafe75b06b
2 changed files with 8 additions and 1 deletions

View file

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

View file

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