aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/dbxread.c1
-rw-r--r--gdb/infcall.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index d520266..be73769 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -1684,6 +1684,7 @@ pos %d"),
continue; /* Not a debugging symbol. */
sym_len = 0;
+ sym_name = NULL; /* pacify "gcc -Werror" */
if (psymtab_language == language_cplus)
{
char *new_name, *name = alloca (p - namestring + 1);
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 16b4320..898e575 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -243,6 +243,7 @@ find_function_addr (struct value *function, struct type **retval_type)
{
/* Handle function descriptors lacking debug info. */
int found_descriptor = 0;
+ funaddr = 0; /* pacify "gcc -Werror" */
if (VALUE_LVAL (function) == lval_memory)
{
CORE_ADDR nfunaddr;