From 509f0fd9410d9394d0a6e2fa4ef80e08de5598b5 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Sun, 9 Oct 2011 20:57:03 +0000 Subject: gdb/ Fix compatibility with older GCCs. * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter. * stack.c (read_frame_arg): Initialize val_deref. --- gdb/stack.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/stack.c') diff --git a/gdb/stack.c b/gdb/stack.c index b01dc1c..953d3bd 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -350,7 +350,8 @@ read_frame_arg (struct symbol *sym, struct frame_info *frame, if (!value_optimized_out (val) && value_available_contents_eq (val, 0, entryval, 0, len)) { - struct value *val_deref, *entryval_deref; + /* Initialize it just to avoid a GCC false warning. */ + struct value *val_deref = NULL, *entryval_deref; /* DW_AT_GNU_call_site_value does match with the current value. If it is a reference still try to verify if -- cgit v1.1