Fix GCC false warning.
	* varobj.c (value_get_print_value) <str_addr>: Initialize it.
This commit is contained in:
Jan Kratochvil 2010-10-17 08:43:46 +00:00
parent ad65951529
commit 3a182a6912
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix GCC false warning.
* varobj.c (value_get_print_value) <str_addr>: Initialize it.
2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
* p-typeprint.c (pascal_type_print_method_args): Fix problem in

View File

@ -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)