PATCH: silence warnings in libiberty/pexecute.c

Ben Elliston bje@au1.ibm.com
Tue Jul 12 04:29:00 GMT 2005


Pre-approved by Ian Taylor.

2005-07-12  Ben Elliston  <bje@au.ibm.com>

        * pexecute.c (pexecute): Cast string litrals to char *.

Index: pexecute.c
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/libiberty/pexecute.c,v
retrieving revision 1.27
diff -u -p -r1.27 pexecute.c
--- pexecute.c  24 May 2005 20:48:25 -0000      1.27
+++ pexecute.c  12 Jul 2005 04:28:43 -0000
@@ -47,7 +47,7 @@ pexecute (const char *program, char * co
     {
       if (pex != NULL)
        {
-         *errmsg_fmt = "pexecute already in progress";
+         *errmsg_fmt = (char *) "pexecute already in progress";
          *errmsg_arg = NULL;
          return -1;
        }
@@ -58,7 +58,7 @@ pexecute (const char *program, char * co
     {
       if (pex == NULL)
        {
-         *errmsg_fmt = "pexecute not in progress";
+         *errmsg_fmt = (char *) "pexecute not in progress";
          *errmsg_arg = NULL;
          return -1;
        }
-------------- 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/c77804e0/attachment.sig>


More information about the Gcc-patches mailing list