]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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 f9d68627767e1c36ad34f07c207c7a0d9d01721f..f6fc888faf8da49fe11bbd5c24f29506cf2daf34 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 1b28a8f09b8a6229f14f7eef8054a706603e0fe3..b198dea38dc8ddfcda8b782a981dc31830491bc0 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)
            {