Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Patches > New flex warnin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3700 of 3862
Post > Topic >>

New flex warnings

by peter_e@[EMAIL PROTECTED] (Peter Eisentraut) May 9, 2008 at 03:59 PM

--Boundary-00=_QjFJIW4T/3wdDuL
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

With GCC 4.3, I get warnings from every flex scanner that 'input' is
defined 
but not used.  This can be solved by adding %option noinput.  I tested
this 
option with a current flex and with the old 2.5.4a; both accept it.  See 
attached patch.  Does anyone see problems with this?

--Boundary-00=_QjFJIW4T/3wdDuL
Content-Type: text/x-diff;
  charset="us-ascii";
  name="flex-noinput.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="flex-noinput.patch"

diff --git a/src/backend/bootstrap/bootscanner.l
b/src/backend/bootstrap/bootscanner.l
index 89772f8..f82e0e9 100644
--- a/src/backend/bootstrap/bootscanner.l
+++ b/src/backend/bootstrap/bootscanner.l
@[EMAIL PROTECTED]
 -52,6 +52,7 @[EMAIL PROTECTED]
 static int	yyline = 1;			/* line number for error
reporting */
 %option 8bit
 %option never-interactive
 %option nodefault
+%option noinput
 %option nounput
 %option noyywrap
 %option prefix="boot_yy"
diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l
index 99f8546..012b120 100644
--- a/src/backend/parser/scan.l
+++ b/src/backend/parser/scan.l
@[EMAIL PROTECTED]
 -101,6 +101,7 @[EMAIL PROTECTED]
 static unsigned char unescape_single_char(unsigned
char c);
 %option 8bit
 %option never-interactive
 %option nodefault
+%option noinput
 %option nounput
 %option noyywrap
 %option prefix="base_yy"
diff --git a/src/backend/utils/misc/guc-file.l
b/src/backend/utils/misc/guc-file.l
index 3a4b63b..706da59 100644
--- a/src/backend/utils/misc/guc-file.l
+++ b/src/backend/utils/misc/guc-file.l
@[EMAIL PROTECTED]
 -59,6 +59,7 @[EMAIL PROTECTED]
 static char *GUC_scanstr(const char *s);
 %option 8bit
 %option never-interactive
 %option nodefault
+%option noinput
 %option nounput
 %option noyywrap
 %option prefix="GUC_yy"
diff --git a/src/bin/psql/psqlscan.l b/src/bin/psql/psqlscan.l
index 02c7f40..965c41b 100644
--- a/src/bin/psql/psqlscan.l
+++ b/src/bin/psql/psqlscan.l
@[EMAIL PROTECTED]
 -125,6 +125,7 @[EMAIL PROTECTED]
 static void emit(const char *txt, int len);
 %option 8bit
 %option never-interactive
 %option nodefault
+%option noinput
 %option nounput
 %option noyywrap
 
diff --git a/src/interfaces/ecpg/preproc/pgc.l
b/src/interfaces/ecpg/preproc/pgc.l
index bd0a7d2..9b6feb7 100644
--- a/src/interfaces/ecpg/preproc/pgc.l
+++ b/src/interfaces/ecpg/preproc/pgc.l
@[EMAIL PROTECTED]
 -76,6 +76,7 @[EMAIL PROTECTED]
 static struct _if_value
 %option 8bit
 %option never-interactive
 %option nodefault
+%option noinput
 %option noyywrap
 
 %option yylineno
diff --git a/src/pl/plpgsql/src/scan.l b/src/pl/plpgsql/src/scan.l
index 0ec8d53..fb9ef4b 100644
--- a/src/pl/plpgsql/src/scan.l
+++ b/src/pl/plpgsql/src/scan.l
@[EMAIL PROTECTED]
 -47,6 +47,7 @[EMAIL PROTECTED]
 bool plpgsql_SpaceScanned = false;
 %option 8bit
 %option never-interactive
 %option nodefault
+%option noinput
 %option nounput
 %option noyywrap
 %option prefix="plpgsql_base_yy"

--Boundary-00=_QjFJIW4T/3wdDuL
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0


-- 
Sent via pgsql-patches mailing list (pgsql-patches@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches

--Boundary-00=_QjFJIW4T/3wdDuL--




 2 Posts in Topic:
New flex warnings
peter_e@[EMAIL PROTECTED]  2008-05-09 15:59:44 
Re: New flex warnings
tgl@[EMAIL PROTECTED] (T  2008-05-09 11:12:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Fri Jul 4 23:03:39 CDT 2008.