* gdb/ada-lang.c (standard_lookup): Prevent uninitialized variable
warning.
This commit is contained in:
parent
f715a0fb03
commit
acbd605ddd
2 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue