aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
parent58af5af40335be68e0fa1f007164381fa75fdb66 (diff)
downloadfsf-binutils-gdb-cafe75b06b2346a00c5a53dedec28e83c11c3a6a.zip
fsf-binutils-gdb-cafe75b06b2346a00c5a53dedec28e83c11c3a6a.tar.gz
fsf-binutils-gdb-cafe75b06b2346a00c5a53dedec28e83c11c3a6a.tar.bz2
gdb/
Fix false compilation warning. * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/gnu-v3-abi.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4764315..e4c225a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
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);