From e3c8e6ed74f83192533b5a50c7b334b25cb5e79b Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 27 Aug 2009 06:28:50 +0000 Subject: [PATCH] fix warn --- Parser/Gmsh.tab.cpp | 4 ++-- Parser/Gmsh.y | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Parser/Gmsh.tab.cpp b/Parser/Gmsh.tab.cpp index 504f489752..5c9b9a5e97 100644 --- a/Parser/Gmsh.tab.cpp +++ b/Parser/Gmsh.tab.cpp @@ -394,7 +394,7 @@ static int yylinenoImbricatedLoopsTab[MAX_RECUR_LOOPS]; static double LoopControlVariablesTab[MAX_RECUR_LOOPS][3]; static char *LoopControlVariablesNameTab[MAX_RECUR_LOOPS]; -void yyerror(char *s); +void yyerror(const char *s); void yymsg(int level, const char *fmt, ...); void skip_until(const char *skip, const char *until); int PrintListOfDouble(char *format, List_T *list, char *buffer); @@ -8773,7 +8773,7 @@ void FixRelativePath(const char *in, char *out) } } -void yyerror(char *s) +void yyerror(const char *s) { Msg::Error("'%s', line %d : %s (%s)", gmsh_yyname.c_str(), gmsh_yylineno - 1, s, gmsh_yytext); diff --git a/Parser/Gmsh.y b/Parser/Gmsh.y index 8e2ae86ee9..318c84d5a8 100644 --- a/Parser/Gmsh.y +++ b/Parser/Gmsh.y @@ -63,7 +63,7 @@ static int yylinenoImbricatedLoopsTab[MAX_RECUR_LOOPS]; static double LoopControlVariablesTab[MAX_RECUR_LOOPS][3]; static char *LoopControlVariablesNameTab[MAX_RECUR_LOOPS]; -void yyerror(char *s); +void yyerror(const char *s); void yymsg(int level, const char *fmt, ...); void skip_until(const char *skip, const char *until); int PrintListOfDouble(char *format, List_T *list, char *buffer); @@ -3923,7 +3923,7 @@ void FixRelativePath(const char *in, char *out) } } -void yyerror(char *s) +void yyerror(const char *s) { Msg::Error("'%s', line %d : %s (%s)", gmsh_yyname.c_str(), gmsh_yylineno - 1, s, gmsh_yytext); -- GitLab