[Pcre-svn] [516] code/trunk: Avoid compiler warning in pcret…

Página Inicial
Delete this message
Autor: Subversion repository
Data:  
Para: pcre-svn
Assunto: [Pcre-svn] [516] code/trunk: Avoid compiler warning in pcretest.
Revision: 516
          http://vcs.pcre.org/viewvc?view=rev&revision=516
Author:   ph10
Date:     2010-05-04 16:51:35 +0100 (Tue, 04 May 2010)


Log Message:
-----------
Avoid compiler warning in pcretest.

Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/pcretest.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2010-05-04 09:12:25 UTC (rev 515)
+++ code/trunk/ChangeLog    2010-05-04 15:51:35 UTC (rev 516)
@@ -25,6 +25,8 @@
     declared with attribute warn_unused_result" were given. Just casting the
     result to (void) does not stop the warnings; a more elaborate fudge is 
     needed. I've used a macro to implement this.  
+    
+7.  Minor change to pcretest.c to avoid a compiler warning. 



Version 8.02 19-Mar-2010

Modified: code/trunk/pcretest.c
===================================================================
--- code/trunk/pcretest.c    2010-05-04 09:12:25 UTC (rev 515)
+++ code/trunk/pcretest.c    2010-05-04 15:51:35 UTC (rev 516)
@@ -251,7 +251,7 @@
     /* Read the next line by normal means, prompting if the file is stdin. */


       {
-      if (f == stdin) printf(prompt);
+      if (f == stdin) printf("%s", prompt);
       if (fgets((char *)here, rlen,  f) == NULL)
         return (here == start)? NULL : start;
       }