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.

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)
            {

brgds, H-P

Reply via email to