diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 92f62ac98b8..02c7dcd5797 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -136,7 +136,7 @@ int yylex(void *yylval, void *yythd); to abort from the parser. */ -void MYSQLerror(THD *thd, const char *s) +static void yyerror(THD *thd, const char *s) { /* Restore the original LEX if it was replaced when parsing diff --git a/sql/sql_yacc_ora.yy b/sql/sql_yacc_ora.yy index 5eb6ac52a96..bb0baf98318 100644 --- a/sql/sql_yacc_ora.yy +++ b/sql/sql_yacc_ora.yy @@ -136,7 +136,7 @@ int yylex(void *yylval, void *yythd); to abort from the parser. */ -void ORAerror(THD *thd, const char *s) +static void yyerror(THD *thd, const char *s) { /* Restore the original LEX if it was replaced when parsing