* gdb/ada-lang.c (standard_lookup): Prevent uninitialized variable

warning.
This commit is contained in:
Matthew Gretton-Dann 2012-05-31 09:34:40 +00:00
parent f715a0fb03
commit acbd605ddd
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* ada-lang.c (standard_lookup): Prevent uninitialized variable
warning.
2012-05-30 Jeff Kenton <jkenton@tilera.com>
* configure.host (gdb_host_cpu): Handle tilegx*.

View File

@ -4256,7 +4256,8 @@ static struct symbol *
standard_lookup (const char *name, const struct block *block,
domain_enum domain)
{
struct symbol *sym;
/* Initialize it just to avoid a GCC false warning. */
struct symbol *sym = NULL;
if (lookup_cached_symbol (name, domain, &sym, NULL))
return sym;