diff --git a/hw/xwin/winprefsyacc.y b/hw/xwin/winprefsyacc.y index 92f222d4f..9bb28ae92 100644 --- a/hw/xwin/winprefsyacc.y +++ b/hw/xwin/winprefsyacc.y @@ -82,6 +82,7 @@ static void CloseSysMenu(void); static int yyerror (const char *s); extern char *yytext; +extern int yylineno; extern int yylex(void); %} @@ -254,8 +255,6 @@ debug: DEBUGOUTPUT STRING NEWLINE { ErrorF("LoadPreferences: %s\n", $2); free($ static int yyerror (const char *s) { - extern int yylineno; /* Handled by flex internally */ - ErrorF("LoadPreferences: %s line %d\n", s, yylineno); return 1; }