From ce8aa074367f364f59edc373597c716e2adbf49e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 10 Oct 2012 04:37:06 +0000 Subject: [PATCH] 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 --- libbacktrace/ChangeLog | 5 +++++ libbacktrace/dwarf.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index f9d68627767..f6fc888faf8 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,8 @@ +2012-10-09 Ian Lance Taylor + + * dwarf.c (dwarf_fileline): Add cast to avoid warning. + (backtrace_dwarf_add): Likewise. + 2012-10-09 Ian Lance Taylor Add support for tracing through shared libraries. diff --git a/libbacktrace/dwarf.c b/libbacktrace/dwarf.c index 1b28a8f09b8..b198dea38dc 100644 --- a/libbacktrace/dwarf.c +++ b/libbacktrace/dwarf.c @@ -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) {