mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
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:
parent
0371d4d063
commit
2e95f1f002
@ -32,6 +32,7 @@ void cube_scanner_finish(void);
|
|||||||
%option noinput
|
%option noinput
|
||||||
%option nounput
|
%option nounput
|
||||||
%option noyywrap
|
%option noyywrap
|
||||||
|
%option warn
|
||||||
%option prefix="cube_yy"
|
%option prefix="cube_yy"
|
||||||
|
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@ void seg_scanner_finish(void);
|
|||||||
%option noinput
|
%option noinput
|
||||||
%option nounput
|
%option nounput
|
||||||
%option noyywrap
|
%option noyywrap
|
||||||
|
%option warn
|
||||||
%option prefix="seg_yy"
|
%option prefix="seg_yy"
|
||||||
|
|
||||||
|
|
||||||
|
@ -55,6 +55,7 @@ static int yyline = 1; /* line number for error reporting */
|
|||||||
%option noinput
|
%option noinput
|
||||||
%option nounput
|
%option nounput
|
||||||
%option noyywrap
|
%option noyywrap
|
||||||
|
%option warn
|
||||||
%option prefix="boot_yy"
|
%option prefix="boot_yy"
|
||||||
|
|
||||||
|
|
||||||
|
@ -51,6 +51,7 @@ static char *GUC_scanstr(const char *s);
|
|||||||
%option noinput
|
%option noinput
|
||||||
%option nounput
|
%option nounput
|
||||||
%option noyywrap
|
%option noyywrap
|
||||||
|
%option warn
|
||||||
%option prefix="GUC_yy"
|
%option prefix="GUC_yy"
|
||||||
|
|
||||||
|
|
||||||
|
@ -132,6 +132,7 @@ static void escape_variable(bool as_ident);
|
|||||||
%option noinput
|
%option noinput
|
||||||
%option nounput
|
%option nounput
|
||||||
%option noyywrap
|
%option noyywrap
|
||||||
|
%option warn
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* All of the following definitions and rules should exactly match
|
* All of the following definitions and rules should exactly match
|
||||||
|
@ -84,6 +84,7 @@ static struct _if_value
|
|||||||
%option nodefault
|
%option nodefault
|
||||||
%option noinput
|
%option noinput
|
||||||
%option noyywrap
|
%option noyywrap
|
||||||
|
%option warn
|
||||||
|
|
||||||
%option yylineno
|
%option yylineno
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ static int yyline = 1; /* line number for error reporting */
|
|||||||
static char litbuf[1024];
|
static char litbuf[1024];
|
||||||
static int litbufpos = 0;
|
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 noinput
|
||||||
%option nounput
|
%option nounput
|
||||||
%option noyywrap
|
%option noyywrap
|
||||||
|
%option warn
|
||||||
%option prefix="spec_yy"
|
%option prefix="spec_yy"
|
||||||
|
|
||||||
|
|
||||||
@ -93,7 +94,7 @@ teardown { return(TEARDOWN); }
|
|||||||
%%
|
%%
|
||||||
|
|
||||||
static void
|
static void
|
||||||
addlitchar(const char c)
|
addlitchar(char c)
|
||||||
{
|
{
|
||||||
if (litbufpos >= sizeof(litbuf) - 1)
|
if (litbufpos >= sizeof(litbuf) - 1)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user