diff options
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index 2eacfa2..09f91eb 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -2486,7 +2486,8 @@ value_get_print_value (struct value *value, enum varobj_display_formats format, long len = 0; char *encoding = NULL; struct gdbarch *gdbarch = NULL; - CORE_ADDR str_addr; + /* Initialize it just to avoid a GCC false warning. */ + CORE_ADDR str_addr = 0; int string_print = 0; if (value == NULL) |