From 41c977aa5c81c04a9fea61bfe0b88e428a4b1839 Mon Sep 17 00:00:00 2001 From: Walfred Tedeschi Date: Thu, 7 Jul 2016 19:07:36 +0200 Subject: [PATCH] [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. --- gdb/ChangeLog | 5 +++++ gdb/cp-namespace.c | 2 ++ 2 files changed, 7 insertions(+) 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); -- 2.30.2