[pushed,obv] Fix broken build on Fedora 23.
Commit Message
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=41c977aa5c81c04a9fea61bfe0b88e428a4b1839
commit 41c977aa5c81c04a9fea61bfe0b88e428a4b1839
Author: Walfred Tedeschi <walfred.tedeschi@intel.com>
Date: Thu Jul 7 19:07:36 2016 +0200
[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.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/cp-namespace.c | 2 ++
2 files changed, 7 insertions(+)
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
@@ -1,5 +1,10 @@
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
parameter to look for the symbol "this".
@@ -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);
Intel Deutschland GmbH