diff options
author | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-10 12:55:52 +0000 |
---|---|---|
committer | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-10 12:55:52 +0000 |
commit | fa45cf123a218a03070dc36e3483563878a89584 (patch) | |
tree | b8322b4cb4c96c60a4729d063ccde9aee9d6ca4d /libbacktrace | |
parent | 8ce9ff04a8e8f69db85dd6a43169a3c7e70ad32e (diff) | |
download | gcc-fa45cf123a218a03070dc36e3483563878a89584.tar.gz |
* elf.c (elf_add_syminfo_data): Add casts to avoid warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192311 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace')
-rw-r--r-- | libbacktrace/ChangeLog | 4 | ||||
-rw-r--r-- | libbacktrace/elf.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index f6fc888faf8..ecb51dfd17d 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,7 @@ +2012-10-10 Hans-Peter Nilsson <hp@bitrange.com> + + * elf.c (elf_add_syminfo_data): Add casts to avoid warning. + 2012-10-09 Ian Lance Taylor <iant@google.com> * dwarf.c (dwarf_fileline): Add cast to avoid warning. diff --git a/libbacktrace/elf.c b/libbacktrace/elf.c index 48e88849813..518e125a101 100644 --- a/libbacktrace/elf.c +++ b/libbacktrace/elf.c @@ -410,7 +410,7 @@ elf_add_syminfo_data (struct backtrace_state *state, { struct elf_syminfo_data **pp; - for (pp = (struct elf_syminfo_data **) &state->syminfo_data; + for (pp = (struct elf_syminfo_data **) (void *) &state->syminfo_data; *pp != NULL; pp = &(*pp)->next) ; @@ -422,7 +422,7 @@ elf_add_syminfo_data (struct backtrace_state *state, { struct elf_syminfo_data **pp; - pp = (struct elf_syminfo_data **) &state->syminfo_data; + pp = (struct elf_syminfo_data **) (void *) &state->syminfo_data; while (1) { |