--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--


|