* gdb/ada-lang.c (standard_lookup): Prevent uninitialized variable
authorMatthew Gretton-Dann <matthew.gretton-dann@arm.com>
Thu, 31 May 2012 09:34:40 +0000 (09:34 +0000)
committerMatthew Gretton-Dann <matthew.gretton-dann@arm.com>
Thu, 31 May 2012 09:34:40 +0000 (09:34 +0000)
warning.

gdb/ChangeLog
gdb/ada-lang.c

index 8a1b27ee4a926a89bc97ed796b4d9601355a9dfb..c09c95431f44ade98b4334bae00a4c92a5fd4b82 100644 (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*.
index 1fac31656fe1397099fb8719010b89889038a899..af0fdb5e53f6d4beaed589becaeedcbe4a8ed930 100644 (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;
This page took 0.038114 seconds and 4 git commands to generate.