projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80f61e9
)
* dbxread.c (read_dbx_symtab): Avoid compiler warnings for
author
Eli Zaretskii
<eliz@gnu.org>
Sat, 2 May 2009 09:41:52 +0000
(09:41 +0000)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 2 May 2009 09:41:52 +0000
(09:41 +0000)
sym_name.
* infcall.c (find_function_addr): Avoid compiler warnings for
funaddr.
gdb/dbxread.c
patch
|
blob
|
history
gdb/infcall.c
patch
|
blob
|
history
diff --git
a/gdb/dbxread.c
b/gdb/dbxread.c
index d520266d54cdd170b88c4708e7d772c9ddfe4225..be7376914927b02726f5c35585aa9c54288f1153 100644
(file)
--- 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 16b43208c6dfd4af1810a3cf60c2e89d5f0c8054..898e57536a3cfa7f8bea034507a780ff91b020aa 100644
(file)
--- 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;