From 7a7b485ed57429bb21e7591f4a1b0454dd1f4aae Mon Sep 17 00:00:00 2001 From: Jens Vollinga Date: Tue, 21 Jun 2011 21:36:16 +0200 Subject: [PATCH] Made yyerror() string argument constant to avoid an compile error with gcc 4.6. --- ginsh/ginsh.h | 2 +- ginsh/ginsh_parser.yy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ginsh/ginsh.h b/ginsh/ginsh.h index fdf9e08b..92a53b45 100644 --- a/ginsh/ginsh.h +++ b/ginsh/ginsh.h @@ -56,7 +56,7 @@ using namespace GiNaC; #define YYSTYPE ex // lex functions/variables -extern int yyerror(char *s); +extern int yyerror(const char *s); extern int yylex(void); extern char *yytext; extern FILE *yyin; diff --git a/ginsh/ginsh_parser.yy b/ginsh/ginsh_parser.yy index 5fc18857..ab300a42 100644 --- a/ginsh/ginsh_parser.yy +++ b/ginsh/ginsh_parser.yy @@ -304,7 +304,7 @@ row : exp {$$ = lst($1);} %% // Error print routine -int yyerror(char *s) +int yyerror(const char *s) { cerr << s << " at " << yytext << endl; return 0; -- 2.44.0