dwarf.c (dwarf_fileline): Add cast to avoid warning.
authorIan Lance Taylor <iant@google.com>
Wed, 10 Oct 2012 04:37:06 +0000 (04:37 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 10 Oct 2012 04:37:06 +0000 (04:37 +0000)
* dwarf.c (dwarf_fileline): Add cast to avoid warning.
(backtrace_dwarf_add): Likewise.

From-SVN: r192288

libbacktrace/ChangeLog
libbacktrace/dwarf.c

index f9d6862..f6fc888 100644 (file)
@@ -1,5 +1,10 @@
 2012-10-09  Ian Lance Taylor  <iant@google.com>
 
+       * dwarf.c (dwarf_fileline): Add cast to avoid warning.
+       (backtrace_dwarf_add): Likewise.
+
+2012-10-09  Ian Lance Taylor  <iant@google.com>
+
        Add support for tracing through shared libraries.
        * configure.ac: Check for link.h and dl_iterate_phdr.
        * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
index 1b28a8f..b198dea 100644 (file)
@@ -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)
            {