diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-10 04:37:06 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-10 04:37:06 +0000 |
commit | bbcd37bcae409d013f3d1744e623031ad33c9f6f (patch) | |
tree | 60bb16452a8ce14de9c8a07375c076e0032896f6 /libbacktrace/dwarf.c | |
parent | d3cb8b936e82644d3a416fdec57fdd3a319a67c8 (diff) | |
download | gcc-bbcd37bcae409d013f3d1744e623031ad33c9f6f.tar.gz |
* dwarf.c (dwarf_fileline): Add cast to avoid warning.
(backtrace_dwarf_add): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192288 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace/dwarf.c')
-rw-r--r-- | libbacktrace/dwarf.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |