From 3436505436d26654ff014fe4c3a115dbc3fc8464 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 9 Jan 2012 22:31:39 +0000 Subject: * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy. * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy. --- gdb/varobj.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gdb/varobj.c') diff --git a/gdb/varobj.c b/gdb/varobj.c index b17d3fd..9c3166d 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -1359,13 +1359,12 @@ varobj_get_value (struct varobj *var) int varobj_set_value (struct varobj *var, char *expression) { - struct value *val; - + struct value *val = NULL; /* Initialize to keep gcc happy. */ /* The argument "expression" contains the variable's new value. We need to first construct a legal expression for this -- ugh! */ /* Does this cover all the bases? */ struct expression *exp; - struct value *value; + struct value *value = NULL; /* Initialize to keep gcc happy. */ int saved_input_radix = input_radix; char *s = expression; volatile struct gdb_exception except; -- cgit v1.1