From 87bc73eacf9bdbb924ae2fabe6968d0e825f1a79 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 2 May 2009 09:41:52 +0000 Subject: * dbxread.c (read_dbx_symtab): Avoid compiler warnings for sym_name. * infcall.c (find_function_addr): Avoid compiler warnings for funaddr. --- gdb/dbxread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/dbxread.c') 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); -- cgit v1.1