* elf.c (elf_add_syminfo_data): Add casts to avoid warning.
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Oct 2012 12:55:52 +0000 (12:55 +0000)
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Oct 2012 12:55:52 +0000 (12:55 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192311 138bc75d-0d04-0410-961f-82ee72b054a4

libbacktrace/ChangeLog
libbacktrace/elf.c

index f6fc888..ecb51df 100644 (file)
@@ -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.
index 48e8884..518e125 100644 (file)
@@ -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)
            {