aboutsummaryrefslogtreecommitdiff
path: root/src/lex.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/lex.l')
-rw-r--r--src/lex.l5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lex.l b/src/lex.l
index fda3002..8596365 100644
--- a/src/lex.l
+++ b/src/lex.l
@@ -131,7 +131,6 @@ findctx (struct stat *st)
int
setsource (const char *name, int intr)
{
- int rc;
struct stat st;
struct context *cp;
FILE *fp;
@@ -190,6 +189,8 @@ setsource (const char *name, int intr)
}
%}
+%option nounput
+
%x STR DEF
WS [ \t][ \t]*
@@ -201,7 +202,7 @@ O [0-7]
%%
^[ \t]*#[ \t]*line[ \t].*\n {
- char *p, *q;
+ char *p;
char *file = NULL;
int line, len;

Return to:

Send suggestions and report system problems to the System administrator.