certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

certi/libCERTI tokens.ll syntax.yy


From: certi-cvs
Subject: certi/libCERTI tokens.ll syntax.yy
Date: Mon, 10 Dec 2007 21:38:47 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Eric NOULARD <erk>      07/12/10 21:38:47

Modified files:
        libCERTI       : tokens.ll syntax.yy 

Log message:
        Fix compiler warning about 
        "deprecated conversion from string constant to char*"

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/libCERTI/tokens.ll?cvsroot=certi&r1=3.4&r2=3.5
http://cvs.savannah.gnu.org/viewcvs/certi/libCERTI/syntax.yy?cvsroot=certi&r1=3.6&r2=3.7

Patches:
Index: tokens.ll
===================================================================
RCS file: /sources/certi/certi/libCERTI/tokens.ll,v
retrieving revision 3.4
retrieving revision 3.5
diff -u -b -r3.4 -r3.5
--- tokens.ll   9 Dec 2007 17:02:22 -0000       3.4
+++ tokens.ll   10 Dec 2007 21:38:47 -0000      3.5
@@ -20,7 +20,7 @@
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 // USA
 //
-// $Id: tokens.ll,v 3.4 2007/12/09 17:02:22 erk Exp $
+// $Id: tokens.ll,v 3.5 2007/12/10 21:38:47 erk Exp $
 // ----------------------------------------------------------------------------
 
 #include "syntax.h"
@@ -42,7 +42,7 @@
 
 }}
 
-int yyerror(char *);
+int yyerror(const char *);
 %}
 
 ident   [A-Za-z_][A-Za-z0-9_\.]*

Index: syntax.yy
===================================================================
RCS file: /sources/certi/certi/libCERTI/syntax.yy,v
retrieving revision 3.6
retrieving revision 3.7
diff -u -b -r3.6 -r3.7
--- syntax.yy   9 Dec 2007 17:02:22 -0000       3.6
+++ syntax.yy   10 Dec 2007 21:38:47 -0000      3.7
@@ -20,7 +20,7 @@
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 // USA
 //
-// $Id: syntax.yy,v 3.6 2007/12/09 17:02:22 erk Exp $
+// $Id: syntax.yy,v 3.7 2007/12/10 21:38:47 erk Exp $
 // ----------------------------------------------------------------------------
 
 #include "fed.hh"
@@ -39,7 +39,7 @@
 }}
 
 int yylex();
-int yyerror(char *);
+int yyerror(const char *);
 
 %}
 
@@ -228,7 +228,7 @@
 
 %%
 
-int yyerror(char *s) {
+int yyerror(const char *s) {
     cout << endl << certi::fedparser::fed_filename << ":" 
         << certi::fedparser::line_number << ": " << s << endl ;
     return 0 ;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]