diff options
author | Doug Evans <dje@google.com> | 2012-01-09 22:31:37 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-01-09 22:31:37 +0000 |
commit | 519528f2ccf23284473bf8458b41cd97b44f09cd (patch) | |
tree | 8233792467d169b912063433ad55b57f386dd2eb /gdb/gdbtypes.c | |
parent | 9fe609accf24ee19c9bbc9d733113693fd87eea0 (diff) | |
download | gdb-519528f2ccf23284473bf8458b41cd97b44f09cd.tar.gz |
* gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
* varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r-- | gdb/gdbtypes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 9a570ac54d9..b09c1ec3bfb 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -1674,7 +1674,7 @@ static struct type * safe_parse_type (struct gdbarch *gdbarch, char *p, int length) { struct ui_file *saved_gdb_stderr; - struct type *type; + struct type *type = NULL; /* Initialize to keep gcc happy. */ volatile struct gdb_exception except; /* Suppress error messages. */ |