Add "%option warn" to all flex input files that lacked it.

This is recommended in the flex manual, and there seems no good reason
not to use it everywhere.
This commit is contained in:
Tom Lane 2011-08-25 13:55:57 -04:00
parent 0371d4d063
commit 2e95f1f002
7 changed files with 9 additions and 2 deletions

View File

@ -32,6 +32,7 @@ void cube_scanner_finish(void);
%option noinput
%option nounput
%option noyywrap
%option warn
%option prefix="cube_yy"

View File

@ -30,6 +30,7 @@ void seg_scanner_finish(void);
%option noinput
%option nounput
%option noyywrap
%option warn
%option prefix="seg_yy"

View File

@ -55,6 +55,7 @@ static int yyline = 1; /* line number for error reporting */
%option noinput
%option nounput
%option noyywrap
%option warn
%option prefix="boot_yy"

View File

@ -51,6 +51,7 @@ static char *GUC_scanstr(const char *s);
%option noinput
%option nounput
%option noyywrap
%option warn
%option prefix="GUC_yy"

View File

@ -132,6 +132,7 @@ static void escape_variable(bool as_ident);
%option noinput
%option nounput
%option noyywrap
%option warn
/*
* All of the following definitions and rules should exactly match

View File

@ -84,6 +84,7 @@ static struct _if_value
%option nodefault
%option noinput
%option noyywrap
%option warn
%option yylineno

View File

@ -15,7 +15,7 @@ static int yyline = 1; /* line number for error reporting */
static char litbuf[1024];
static int litbufpos = 0;
static void addlitchar(const char c);
static void addlitchar(char c);
%}
@ -25,6 +25,7 @@ static void addlitchar(const char c);
%option noinput
%option nounput
%option noyywrap
%option warn
%option prefix="spec_yy"
@ -93,7 +94,7 @@ teardown { return(TEARDOWN); }
%%
static void
addlitchar(const char c)
addlitchar(char c)
{
if (litbufpos >= sizeof(litbuf) - 1)
{