aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/winprefslex.l
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/hw/xwin/winprefslex.l')
-rw-r--r--xorg-server/hw/xwin/winprefslex.l7
1 files changed, 3 insertions, 4 deletions
diff --git a/xorg-server/hw/xwin/winprefslex.l b/xorg-server/hw/xwin/winprefslex.l
index 83204b61c..66d12ede7 100644
--- a/xorg-server/hw/xwin/winprefslex.l
+++ b/xorg-server/hw/xwin/winprefslex.l
@@ -37,12 +37,8 @@
#include <string.h>
#include "winprefsyacc.h"
-extern YYSTYPE yylval;
-extern char *yytext;
extern int yyparse(void);
-int yylineno;
-
/* Copy the parsed string, must be free()d in yacc parser */
static char *makestr(char *str)
{
@@ -60,6 +56,9 @@ static char *makestr(char *str)
%}
%option yylineno
+%option nounput
+%option noinput
+%option never-interactive
%%
\#.*[\r\n] { /* comment */ return NEWLINE; }