gdb/
Fix false GCC warning. * linespec.c (decode_line_1): Initialize values.
This commit is contained in:
parent
a04f20bdeb
commit
2f741504c0
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
Fix false GCC warning.
|
||||
* linespec.c (decode_line_1): Initialize values.
|
||||
|
||||
2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* linespec.c (find_method): Accept the function type automatically only
|
||||
|
|
|
@ -932,6 +932,9 @@ decode_line_1 (char **argptr, int funfirstline, struct symtab *default_symtab,
|
|||
if (is_quote_enclosed)
|
||||
++saved_arg;
|
||||
|
||||
/* Initialize it just to avoid a GCC false warning. */
|
||||
memset (&values, 0, sizeof (values));
|
||||
|
||||
TRY_CATCH (ex, RETURN_MASK_ERROR)
|
||||
{
|
||||
values = decode_compound (argptr, funfirstline, canonical,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue