This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
warning fix
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Sat, 8 Jun 2002 00:38:05 +0930
- Subject: warning fix
entry->pattern is a "const char *".
* emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
Index: ld/emultempl/ppc64elf.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/ppc64elf.em,v
retrieving revision 1.7
diff -u -p -r1.7 ppc64elf.em
--- ld/emultempl/ppc64elf.em 22 May 2002 09:04:48 -0000 1.7
+++ ld/emultempl/ppc64elf.em 7 Jun 2002 12:48:06 -0000
@@ -349,7 +349,7 @@ gld${EMULATION_NAME}_new_vers_pattern (e
&& next->match == entry->match)
{
next = entry->next;
- free (entry->pattern);
+ free ((char *) entry->pattern);
free (entry);
return next;
}
--
Alan Modra
IBM OzLabs - Linux Technology Centre