diff --git a/src/interfaces/ecpg/preproc/extern.h b/src/interfaces/ecpg/preproc/extern.h index 682ead43ec8..9aae32af26d 100644 --- a/src/interfaces/ecpg/preproc/extern.h +++ b/src/interfaces/ecpg/preproc/extern.h @@ -37,7 +37,7 @@ extern void lex_init(void); extern char *input_filename; extern int yyparse(void); extern int yylex(void); -extern void yyerror(char *); +extern void yyerror(const char * error); extern void *mm_alloc(size_t), *mm_realloc(void *, size_t); extern char *mm_strdup(const char *); extern void mmerror(enum errortype, char * ); diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index 7b8d16f31a4..28b66abb24a 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -5428,7 +5428,7 @@ blockend : '}' { %% -void yyerror(char * error) +void yyerror(const char * error) { mmerror(ET_ERROR, error); }