From: Walfred Tedeschi Date: Thu, 7 Jul 2016 17:07:36 +0000 (+0200) Subject: [obv] Fix broken build on Fedora 23. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41c977aa5c81c04a9fea61bfe0b88e428a4b1839;p=binutils-gdb.git [obv] Fix broken build on Fedora 23. Compiler complains about possible utilization of "symbol" which is member of lang_def. Initialization was added. 2016-07-07 Walfred Tedeschi gdb/ChangeLog: * cp-namespace.c (cp_lookup_bare_symbol): Initialize lang_this.symbol. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2d3e5ed71f8..92c13374928 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2016-07-07 Walfred Tedeschi + + * cp-namespace.c (cp_lookup_bare_symbol): Initialize + lang_this.symbol. + 2016-07-07 Walfred Tedeschi * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index f34e383bd30..0f1b452f651 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -206,6 +206,8 @@ cp_lookup_bare_symbol (const struct language_defn *langdef, struct block_symbol lang_this; struct type *type; + lang_this.symbol = NULL; + if (langdef != NULL) lang_this = lookup_language_this (langdef, block);