Squelch useless flex-induced warning messages
tested in a gcc-4.2.2 flex-2.5.33 environment
This commit is contained in:
parent
e01e7b1280
commit
17cc661336
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
%option nounput
|
||||
|
||||
%{
|
||||
/*
|
||||
* Copyright (c) 2001 Stephen Williams (steve@icarus.com)
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ ivlpp@EXEEXT@: $O
|
|||
$(CC) $(LDFLAGS) $O -o ivlpp@EXEEXT@ @EXTRALIBS@
|
||||
|
||||
lexor.c: lexor.lex
|
||||
flex -s -olexor.c $(srcdir)/lexor.lex
|
||||
flex -olexor.c $(srcdir)/lexor.lex
|
||||
|
||||
parse.h parse.c: parse.y
|
||||
bison --verbose -t -d -o parse.c $(srcdir)/parse.y
|
||||
|
|
|
|||
|
|
@ -158,6 +158,8 @@ static int ma_parenthesis_level = 0;
|
|||
%}
|
||||
|
||||
%option stack
|
||||
%option nounput
|
||||
%option noyy_top_state
|
||||
|
||||
%x PPINCLUDE
|
||||
%x DEF_NAME
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@
|
|||
# include <stdio.h>
|
||||
|
||||
static void yyerror(const char*msg);
|
||||
extern int yylex (void);
|
||||
|
||||
%}
|
||||
|
||||
%%
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
%option never-interactive
|
||||
%option nounput
|
||||
|
||||
%{
|
||||
/*
|
||||
|
|
@ -390,8 +391,9 @@ W [ \t\b\f\r]+
|
|||
error_count += 1; }
|
||||
|
||||
/* Final catchall. something got lost or mishandled. */
|
||||
/* XXX Should we tell the luser something about the lexical state? */
|
||||
|
||||
. { cerr << yylloc.text << ":" << yylloc.first_line
|
||||
<*>.|\n { cerr << yylloc.text << ":" << yylloc.first_line
|
||||
<< ": error: unmatched character (";
|
||||
if (isgraph(yytext[0]))
|
||||
cerr << yytext[0];
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
%option never-interactive
|
||||
%option nounput
|
||||
|
||||
%{
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
%option nounput
|
||||
|
||||
%{
|
||||
/*
|
||||
* Copyright (c) 1999 Stephen Williams (steve@icarus.com)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
%option never-interactive
|
||||
%option nounput
|
||||
|
||||
%{
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue