diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/cp-namespace.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 817610e..9d9761a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-08-03 Ulrich Weigand <uweigand@de.ibm.com> + + * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized + variable warning with some compilers. + 2015-08-03 Yao Qi <yao.qi@linaro.org> * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type" diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index aa29c92..f5f4bad 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -485,6 +485,7 @@ cp_lookup_symbol_via_imports (const char *scope, struct cleanup *searched_cleanup; sym.symbol = NULL; + sym.block = NULL; /* First, try to find the symbol in the given namespace if requested. */ if (search_scope_first) |