diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-08-25 13:55:57 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-08-25 13:55:57 -0400 |
commit | 2e95f1f002bc3f0504dffa6d9ffed0dc914ecec1 (patch) | |
tree | d28b03d260f30c8c9150ad72d96aba6cfaa731ce /src | |
parent | 0371d4d0632221957a60d4cdb70a898caf7ce6cf (diff) | |
download | postgresql-2e95f1f002bc3f0504dffa6d9ffed0dc914ecec1.tar.gz postgresql-2e95f1f002bc3f0504dffa6d9ffed0dc914ecec1.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/bootstrap/bootscanner.l | 1 | ||||
-rw-r--r-- | src/backend/utils/misc/guc-file.l | 1 | ||||
-rw-r--r-- | src/bin/psql/psqlscan.l | 1 | ||||
-rw-r--r-- | src/interfaces/ecpg/preproc/pgc.l | 1 | ||||
-rw-r--r-- | src/test/isolation/specscanner.l | 5 |
5 files changed, 7 insertions, 2 deletions
diff --git a/src/backend/bootstrap/bootscanner.l b/src/backend/bootstrap/bootscanner.l index fba020008fe..f4230d93b18 100644 --- a/src/backend/bootstrap/bootscanner.l +++ b/src/backend/bootstrap/bootscanner.l @@ -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" diff --git a/src/backend/utils/misc/guc-file.l b/src/backend/utils/misc/guc-file.l index 3e9b10328d4..70abf40a28e 100644 --- a/src/backend/utils/misc/guc-file.l +++ b/src/backend/utils/misc/guc-file.l @@ -51,6 +51,7 @@ static char *GUC_scanstr(const char *s); %option noinput %option nounput %option noyywrap +%option warn %option prefix="GUC_yy" diff --git a/src/bin/psql/psqlscan.l b/src/bin/psql/psqlscan.l index dfc6648e569..46141f7ddac 100644 --- a/src/bin/psql/psqlscan.l +++ b/src/bin/psql/psqlscan.l @@ -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 diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l index 019b70bbaf9..e4f55f81768 100644 --- a/src/interfaces/ecpg/preproc/pgc.l +++ b/src/interfaces/ecpg/preproc/pgc.l @@ -84,6 +84,7 @@ static struct _if_value %option nodefault %option noinput %option noyywrap +%option warn %option yylineno diff --git a/src/test/isolation/specscanner.l b/src/test/isolation/specscanner.l index 36e10e76785..77d863e3e67 100644 --- a/src/test/isolation/specscanner.l +++ b/src/test/isolation/specscanner.l @@ -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) { |