From 6920252234d36afb155c772e8bc30cef557bcac6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mariusz=20Pluci=C5=84ski?= Date: Fri, 25 Jul 2014 16:10:07 +0200 Subject: [PATCH] Avoid passing `const char*` argument as `char*` in test-bison-nr --- tests/bison_nr_parser.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/bison_nr_parser.y b/tests/bison_nr_parser.y index 2cbf9aa..01c5dfe 100644 --- a/tests/bison_nr_parser.y +++ b/tests/bison_nr_parser.y @@ -35,7 +35,7 @@ /* #define YYPARSE_PARAM scanner */ /* #define YYLEX_PARAM scanner */ -int yyerror(char* msg); +int yyerror(const char* msg); extern int testget_lineno(void); @@ -89,7 +89,7 @@ line: %% -int yyerror(char* msg) { +int yyerror(const char* msg) { fprintf(stderr,"%s\n",msg); return 0; } -- 2.40.0