Results for 2.15.95 20050304 testsuite on i686-pc-cygwin

Alan Modra amodra@bigpond.net.au
Sun Mar 6 01:59:00 GMT 2005


On Sat, Mar 05, 2005 at 06:05:13PM +0100, Christian Joensson wrote:
> /usr/local/src/trunk/src/bfd/elf.c: In function `elfcore_grok_win32pstatus':
> /usr/local/src/trunk/src/bfd/elf.c:7083: warning: int format, DWORD arg (arg 3)
> /usr/local/src/trunk/src/bfd/elf.c:7110: warning: unsigned int format,
> pointer arg (arg 3)

This should silence them.

	* elf.c (elfcore_grok_win32pstatus): Warning fixes.

Index: bfd/elf.c
===================================================================
RCS file: /cvs/src/src/bfd/elf.c,v
retrieving revision 1.269
diff -u -p -r1.269 elf.c
--- bfd/elf.c	3 Mar 2005 20:52:31 -0000	1.269
+++ bfd/elf.c	6 Mar 2005 01:55:07 -0000
@@ -7080,7 +7080,7 @@ elfcore_grok_win32pstatus (bfd *abfd, El
 
     case NOTE_INFO_THREAD:
       /* Make a ".reg/999" section.  */
-      sprintf (buf, ".reg/%d", pstatus.data.thread_info.tid);
+      sprintf (buf, ".reg/%ld", (long) pstatus.data.thread_info.tid);
 
       len = strlen (buf) + 1;
       name = bfd_alloc (abfd, len);
@@ -7107,7 +7107,8 @@ elfcore_grok_win32pstatus (bfd *abfd, El
 
     case NOTE_INFO_MODULE:
       /* Make a ".module/xxxxxxxx" section.  */
-      sprintf (buf, ".module/%08x", pstatus.data.module_info.base_address);
+      sprintf (buf, ".module/%08lx",
+	       (long) pstatus.data.module_info.base_address);
 
       len = strlen (buf) + 1;
       name = bfd_alloc (abfd, len);

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list