[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  <walfred.tedeschi@intel.com>

gdb/ChangeLog:

	* cp-namespace.c (cp_lookup_bare_symbol): Initialize
	lang_this.symbol.
This commit is contained in:
Walfred Tedeschi 2016-07-07 19:07:36 +02:00
parent 4f19a0e6b4
commit 41c977aa5c
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
* cp-namespace.c (cp_lookup_bare_symbol): Initialize
lang_this.symbol.
2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
* cp-namespace.c (cp_lookup_bare_symbol): Use language passed as

View File

@ -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);