From: Jan Kratochvil Date: Mon, 4 Jul 2011 14:16:14 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f741504c04f9990ad984819c089c212b42ca8a5;p=binutils-gdb.git gdb/ Fix false GCC warning. * linespec.c (decode_line_1): Initialize values. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 406da713d33..c9e36ff8692 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-07-04 Jan Kratochvil + + Fix false GCC warning. + * linespec.c (decode_line_1): Initialize values. + 2011-07-01 Jan Kratochvil * linespec.c (find_method): Accept the function type automatically only diff --git a/gdb/linespec.c b/gdb/linespec.c index 7740633ff2f..1064e8ce8ee 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -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,