From f140ac52db97dcdbd1222a2c5d3c33876f4f38e5 Mon Sep 17 00:00:00 2001 From: Kai Blaschke Date: Sat, 11 Nov 2023 12:45:06 +0100 Subject: [PATCH] Fix mismatched declaration of yyerror function. --- projectm-eval/Compiler.h | 2 +- projectm-eval/Compiler.y | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projectm-eval/Compiler.h b/projectm-eval/Compiler.h index e386265..ae5e1c3 100644 --- a/projectm-eval/Compiler.h +++ b/projectm-eval/Compiler.h @@ -147,7 +147,7 @@ int prjm_eval_parse (prjm_eval_compiler_context_t* cctx, yyscan_t scanner); int yylex(YYSTYPE* yylval_param, YYLTYPE* yylloc_param, prjm_eval_compiler_context_t* cctx, yyscan_t yyscanner) YY_DECL; - int yyerror(YYLTYPE* yyllocp, prjm_eval_compiler_context_t* cctx, yyscan_t yyscanner, const char* message); + void yyerror(YYLTYPE* yyllocp, prjm_eval_compiler_context_t* cctx, yyscan_t yyscanner, const char* message); #endif /* !YY_PRJM_EVAL_COMPILER_H_INCLUDED */ diff --git a/projectm-eval/Compiler.y b/projectm-eval/Compiler.y index a5644d3..b035e0b 100644 --- a/projectm-eval/Compiler.y +++ b/projectm-eval/Compiler.y @@ -30,7 +30,7 @@ typedef void* yyscan_t; int yylex(YYSTYPE* yylval_param, YYLTYPE* yylloc_param, prjm_eval_compiler_context_t* cctx, yyscan_t yyscanner) YY_DECL; - int yyerror(YYLTYPE* yyllocp, prjm_eval_compiler_context_t* cctx, yyscan_t yyscanner, const char* message); + void yyerror(YYLTYPE* yyllocp, prjm_eval_compiler_context_t* cctx, yyscan_t yyscanner, const char* message); } /* Token declarations */