From 2e95f1f002bc3f0504dffa6d9ffed0dc914ecec1 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 25 Aug 2011 13:55:57 -0400 Subject: 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. --- src/test/isolation/specscanner.l | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/test/isolation') 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) { -- cgit v1.2.3