aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-v3-abi.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-03-16 08:18:09 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-03-16 08:18:09 +0000
commitcafe75b06b2346a00c5a53dedec28e83c11c3a6a (patch)
tree7e2919a13241d0d18807238acff7eba7515b5886 /gdb/gnu-v3-abi.c
parent58af5af40335be68e0fa1f007164381fa75fdb66 (diff)
downloadgdb-cafe75b06b2346a00c5a53dedec28e83c11c3a6a.zip
gdb-cafe75b06b2346a00c5a53dedec28e83c11c3a6a.tar.gz
gdb-cafe75b06b2346a00c5a53dedec28e83c11c3a6a.tar.bz2
gdb/
Fix false compilation warning. * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r--gdb/gnu-v3-abi.c3
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);