summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2008-05-09 15:36:31 +0000
committerPeter Eisentraut2008-05-09 15:36:31 +0000
commit9f7853349a91af8f986087563ff14c9eaa28ac72 (patch)
tree94d267b480200deaff78cf18f81c6f2b57cb9c8a
parent0502beef04f60a77b637f5b9a21cce2e749b4760 (diff)
Add "%option noinput" to the scanners to avoid compiler warnings. GCC 4.3
began to realize that the input() function isn't used and printed warnings.
-rw-r--r--src/backend/bootstrap/bootscanner.l1
-rw-r--r--src/backend/parser/scan.l1
-rw-r--r--src/backend/utils/misc/guc-file.l1
-rw-r--r--src/bin/psql/psqlscan.l1
-rw-r--r--src/interfaces/ecpg/preproc/pgc.l1
-rw-r--r--src/pl/plpgsql/src/scan.l1
6 files changed, 6 insertions, 0 deletions
diff --git a/src/backend/bootstrap/bootscanner.l b/src/backend/bootstrap/bootscanner.l
index 89772f8fd3..f82e0e9f91 100644
--- a/src/backend/bootstrap/bootscanner.l
+++ b/src/backend/bootstrap/bootscanner.l
@@ -52,6 +52,7 @@ 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 99f8546244..012b120a9e 100644
--- a/src/backend/parser/scan.l
+++ b/src/backend/parser/scan.l
@@ -101,6 +101,7 @@ 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 3a4b63b08c..706da59d5b 100644
--- a/src/backend/utils/misc/guc-file.l
+++ b/src/backend/utils/misc/guc-file.l
@@ -59,6 +59,7 @@ 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 02c7f40665..965c41bc36 100644
--- a/src/bin/psql/psqlscan.l
+++ b/src/bin/psql/psqlscan.l
@@ -125,6 +125,7 @@ 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 bd0a7d265e..9b6feb71a6 100644
--- a/src/interfaces/ecpg/preproc/pgc.l
+++ b/src/interfaces/ecpg/preproc/pgc.l
@@ -76,6 +76,7 @@ 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 0ec8d534ac..fb9ef4b9d7 100644
--- a/src/pl/plpgsql/src/scan.l
+++ b/src/pl/plpgsql/src/scan.l
@@ -47,6 +47,7 @@ bool plpgsql_SpaceScanned = false;
%option 8bit
%option never-interactive
%option nodefault
+%option noinput
%option nounput
%option noyywrap
%option prefix="plpgsql_base_yy"