aboutsummaryrefslogtreecommitdiff
path: root/gdb/dbxread.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2009-05-02 09:41:52 +0000
committerEli Zaretskii <eliz@gnu.org>2009-05-02 09:41:52 +0000
commit87bc73eacf9bdbb924ae2fabe6968d0e825f1a79 (patch)
tree5079c76e8ef0e043782d8afbd9163d9d17462791 /gdb/dbxread.c
parent80f61e9b0511b43e1f3a04a6dc2fbc68d65e1480 (diff)
downloadgdb-87bc73eacf9bdbb924ae2fabe6968d0e825f1a79.zip
gdb-87bc73eacf9bdbb924ae2fabe6968d0e825f1a79.tar.gz
gdb-87bc73eacf9bdbb924ae2fabe6968d0e825f1a79.tar.bz2
* dbxread.c (read_dbx_symtab): Avoid compiler warnings for
sym_name. * infcall.c (find_function_addr): Avoid compiler warnings for funaddr.
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r--gdb/dbxread.c1
1 files changed, 1 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);