This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: another libiberty tweak


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;
     }

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]