This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [0/10] RFC: remove obj_section field


On 04/08/2013 07:15 PM, Tom Tromey wrote:
"Sandra" == Sandra Loosemore <sandra@codesourcery.com> writes:

Sandra> I'm seeing a build error:
Sandra> .../gdb/symmisc.c: In function 'dump_msymbols':
Sandra> .../gdb/symmisc.c:271:10: error: format '%ld' expects argument of type
Sandra> long int', but argument 3 has type 'int' [-Werror=format]

Oops, sorry about that.  Please try the appended.

Tom

--- symmisc.c.~1.95.~	2013-04-08 14:18:45.764743872 -0600
+++ symmisc.c	2013-04-08 19:13:07.605692663 -0600
@@ -268,7 +268,7 @@
  						section->the_bfd_section));
  	  else
  	    fprintf_filtered (outfile, " spurious section %ld",
-			      section - objfile->sections);
+			      (long) (section - objfile->sections));
  	}
        if (SYMBOL_DEMANGLED_NAME (msymbol) != NULL)
  	{


This builds, at least.  :-)  Thanks.

-Sandra


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