diff options
| author | Tom Lane | 2011-08-25 17:55:57 +0000 |
|---|---|---|
| committer | Tom Lane | 2011-08-25 17:55:57 +0000 |
| commit | 2e95f1f002bc3f0504dffa6d9ffed0dc914ecec1 (patch) | |
| tree | d28b03d260f30c8c9150ad72d96aba6cfaa731ce /src/test/isolation | |
| parent | 0371d4d0632221957a60d4cdb70a898caf7ce6cf (diff) | |
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/test/isolation')
| -rw-r--r-- | src/test/isolation/specscanner.l | 5 |
1 files changed, 3 insertions, 2 deletions
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) { |
