From 2f741504c04f9990ad984819c089c212b42ca8a5 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 4 Jul 2011 14:16:14 +0000 Subject: gdb/ Fix false GCC warning. * linespec.c (decode_line_1): Initialize values. --- gdb/linespec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/linespec.c') diff --git a/gdb/linespec.c b/gdb/linespec.c index 7740633..1064e8c 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, -- cgit v1.1