mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-10 11:12:23 +00:00
* dbxread.c (read_dbx_symtab): Avoid compiler warnings for
sym_name. * infcall.c (find_function_addr): Avoid compiler warnings for funaddr.
This commit is contained in:
parent
80f61e9b05
commit
87bc73eacf
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user