From patchwork Wed Oct 10 12:56:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: libbacktrace patch committed: Trace through shared libraries Date: Wed, 10 Oct 2012 02:56:51 -0000 From: Hans-Peter Nilsson X-Patchwork-Id: 190633 Message-Id: To: Ian Lance Taylor Cc: gcc-patches@gcc.gnu.org On Tue, 9 Oct 2012, Ian Lance Taylor wrote: > It's an incorrect warning from an old version of GCC. Fixed like so. > Bootstrapped and ran libbacktrace testsuite on > x86_64-unknown-linux-gnu. Committed to mainline. Another two in libbackend/elf.c, committed as obvious after build passed the point-of-failure. * elf.c (elf_add_syminfo_data): Add casts to avoid warning. brgds, H-P Index: libbacktrace/elf.c =================================================================== --- libbacktrace/elf.c (revision 192306) +++ libbacktrace/elf.c (working copy) @@ -410,7 +410,7 @@ elf_add_syminfo_data (struct backtrace_s { 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_s { struct elf_syminfo_data **pp; - pp = (struct elf_syminfo_data **) &state->syminfo_data; + pp = (struct elf_syminfo_data **) (void *) &state->syminfo_data; while (1) {