This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libbacktrace patch committed: Trace through shared libraries


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]