[prev in list] [next in list] [prev in thread] [next in thread]
List: gdb-patches
Subject: [RFA] Fix uninitialised variable warning in ada-lang.c
From: jan.kratochvil () redhat ! com (Jan Kratochvil)
Date: 2012-05-31 8:55:00
Message-ID: 20120531085453.GB31740 () host2 ! jankratochvil ! net
[Download RAW message or body]
On Thu, 31 May 2012 10:34:12 +0200, Matthew Gretton-Dann wrote:
> --- a/gdb/ada-lang.c
> +++ b/gdb/ada-lang.c
> @@ -4256,7 +4256,7 @@ static struct symbol *
> standard_lookup (const char *name, const struct block *block,
> domain_enum domain)
> {
> - struct symbol *sym;
> + struct symbol *sym = NULL;
OK for check-in but put there also the common GDB comment before:
/* Initialize it just to avoid a GCC false warning. */
>
> if (lookup_cached_symbol (name, domain, &sym, NULL))
> return sym;
Thanks,
Jan
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic