diff options
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r-- | gdb/gnu-v3-abi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c index 0ba6ab5..72ca2a1 100644 --- a/gdb/gnu-v3-abi.c +++ b/gdb/gnu-v3-abi.c @@ -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); |