This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH]: Fix comparison between signed and unsigned warning in ld
- From: Khem Raj <kraj at mvista dot com>
- To: binutils at sourceware dot org
- Date: Thu, 08 Dec 2005 16:49:49 -0800
- Subject: [PATCH]: Fix comparison between signed and unsigned warning in ld
Hi
This patch fixes a build time warning for ld while building on cygwin
host. As we use -werror the build broke for ld when this warning
was emitted when compiling binutils with gcc 3.4.4
Is it OK?
Thanks
Khem
ld/Changelog
2005-12-08 Khem Raj <kraj@mvista.com>
* emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf_in):
Fix comparison between signed and unsigned warning.
? ld.info
Index: emultempl/elf32.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/elf32.em,v
retrieving revision 1.161
diff -u -p -r1.161 elf32.em
--- emultempl/elf32.em 7 Dec 2005 14:43:54 -0000 1.161
+++ emultempl/elf32.em 9 Dec 2005 00:48:28 -0000
@@ -569,7 +569,7 @@ gld${EMULATION_NAME}_parse_ld_so_conf_in
#ifdef HAVE_GLOB
if (glob (pattern, 0, NULL, &gl) == 0)
{
- size_t i;
+ int i;
for (i = 0; i < gl.gl_pathc; ++i)
gld${EMULATION_NAME}_parse_ld_so_conf (info, gl.gl_pathv[i]);