PATCH: another libiberty tweak
Ben Elliston
bje@au1.ibm.com
Tue Jul 12 03:36:00 GMT 2005
This patch follows existing practice elsewhere in the same function and silences a
warning about discarding const qualifiers.
Ben
2005-07-12 Ben Elliston <bje@au.ibm.com>
* regex.c (re_comp): Cast a call to gettext() to char *.
Index: regex.c
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/libiberty/regex.c,v
retrieving revision 1.20
diff -u -p -r1.20 regex.c
--- regex.c 10 May 2005 15:33:18 -0000 1.20
+++ regex.c 12 Jul 2005 03:35:58 -0000
@@ -7814,7 +7814,7 @@ re_comp (const char *s)
if (!s)
{
if (!re_comp_buf.buffer)
- return gettext ("No previous regular expression");
+ return (char *) gettext ("No previous regular expression");
return 0;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050712/5d529d83/attachment.sig>
More information about the Gcc-patches
mailing list