提交 2e95f1f0 编写于 作者: T Tom Lane

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.
上级 0371d4d0
...@@ -32,6 +32,7 @@ void cube_scanner_finish(void); ...@@ -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); ...@@ -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 */ ...@@ -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); ...@@ -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); ...@@ -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 ...@@ -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 */ ...@@ -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); ...@@ -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); } ...@@ -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)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册