This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Results for 2.15.95 20050304 testsuite on i686-pc-cygwin
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Sun, 6 Mar 2005 12:29:29 +1030
- Subject: Re: Results for 2.15.95 20050304 testsuite on i686-pc-cygwin
- References: <5460e333050305000573134bb3@mail.gmail.com> <20050305082701.GF15642@bubble.modra.org> <5460e333050305010227f4dfc@mail.gmail.com> <20050305095907.GG15642@bubble.modra.org> <5460e3330503050201ee94319@mail.gmail.com> <20050305102128.GH15642@bubble.modra.org> <5460e333050305090564bc05f0@mail.gmail.com>
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