mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
* gdb/ada-lang.c (standard_lookup): Prevent uninitialized variable
warning.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user