dwarf.c (dwarf_fileline): Add cast to avoid warning.

* dwarf.c (dwarf_fileline): Add cast to avoid warning.
	(backtrace_dwarf_add): Likewise.

From-SVN: r192288
This commit is contained in:
Ian Lance Taylor 2012-10-10 04:37:06 +00:00 committed by Ian Lance Taylor
parent f298688cb7
commit ce8aa07436
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2012-10-09 Ian Lance Taylor <iant@google.com>
* dwarf.c (dwarf_fileline): Add cast to avoid warning.
(backtrace_dwarf_add): Likewise.
2012-10-09 Ian Lance Taylor <iant@google.com>
Add support for tracing through shared libraries.

View File

@ -2763,7 +2763,7 @@ dwarf_fileline (struct backtrace_state *state, uintptr_t pc,
{
struct dwarf_data **pp;
pp = (struct dwarf_data **) &state->fileline_data;
pp = (struct dwarf_data **) (void *) &state->fileline_data;
while (1)
{
ddata = *pp;
@ -2884,7 +2884,7 @@ backtrace_dwarf_add (struct backtrace_state *state,
{
struct dwarf_data **pp;
for (pp = (struct dwarf_data **) &state->fileline_data;
for (pp = (struct dwarf_data **) (void *) &state->fileline_data;
*pp != NULL;
pp = &(*pp)->next)
;
@ -2896,7 +2896,7 @@ backtrace_dwarf_add (struct backtrace_state *state,
{
struct dwarf_data **pp;
pp = (struct dwarf_data **) &state->fileline_data;
pp = (struct dwarf_data **) (void *) &state->fileline_data;
while (1)
{