aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorMatthew Gretton-Dann <matthew.gretton-dann@arm.com>2012-05-31 09:34:40 +0000
committerMatthew Gretton-Dann <matthew.gretton-dann@arm.com>2012-05-31 09:34:40 +0000
commitacbd605ddd806554bacb62ce90f48517fb372f9b (patch)
treee47058f7b5f2c482dc940c896890f8b1191538a2 /gdb/ada-lang.c
parentf715a0fb0346d170ee0c5e392557bf93940020b5 (diff)
downloadgdb-acbd605ddd806554bacb62ce90f48517fb372f9b.zip
gdb-acbd605ddd806554bacb62ce90f48517fb372f9b.tar.gz
gdb-acbd605ddd806554bacb62ce90f48517fb372f9b.tar.bz2
* gdb/ada-lang.c (standard_lookup): Prevent uninitialized variable
warning.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 1fac316..af0fdb5 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -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;