Skip to content

Commit d35c56e

Browse files
committed
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.
1 parent 6e3e600 commit d35c56e

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

src/backend/bootstrap/bootscanner.l

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/bootstrap/bootscanner.l,v 1.45 2008/01/01 19:45:48 momjian Exp $
12+
* $PostgreSQL: pgsql/src/backend/bootstrap/bootscanner.l,v 1.46 2008/05/09 15:36:31 petere Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -52,6 +52,7 @@ static int yyline = 1; /* line number for error reporting */
5252
%option 8bit
5353
%option never-interactive
5454
%option nodefault
55+
%option noinput
5556
%option nounput
5657
%option noyywrap
5758
%option prefix="boot_yy"

src/backend/parser/scan.l

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Portions Copyright (c) 1994, Regents of the University of California
2525
*
2626
* IDENTIFICATION
27-
* $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.143 2008/04/04 12:44:36 mha Exp $
27+
* $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.144 2008/05/09 15:36:31 petere Exp $
2828
*
2929
*-------------------------------------------------------------------------
3030
*/
@@ -101,6 +101,7 @@ static unsigned char unescape_single_char(unsigned char c);
101101
%option 8bit
102102
%option never-interactive
103103
%option nodefault
104+
%option noinput
104105
%option nounput
105106
%option noyywrap
106107
%option prefix="base_yy"

src/backend/utils/misc/guc-file.l

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
66
*
7-
* $PostgreSQL: pgsql/src/backend/utils/misc/guc-file.l,v 1.54 2008/05/04 21:13:35 tgl Exp $
7+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc-file.l,v 1.55 2008/05/09 15:36:31 petere Exp $
88
*/
99

1010
%{
@@ -59,6 +59,7 @@ static char *GUC_scanstr(const char *s);
5959
%option 8bit
6060
%option never-interactive
6161
%option nodefault
62+
%option noinput
6263
%option nounput
6364
%option noyywrap
6465
%option prefix="GUC_yy"

src/bin/psql/psqlscan.l

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* Portions Copyright (c) 1994, Regents of the University of California
3434
*
3535
* IDENTIFICATION
36-
* $PostgreSQL: pgsql/src/bin/psql/psqlscan.l,v 1.24 2008/05/02 09:27:51 petere Exp $
36+
* $PostgreSQL: pgsql/src/bin/psql/psqlscan.l,v 1.25 2008/05/09 15:36:31 petere Exp $
3737
*
3838
*-------------------------------------------------------------------------
3939
*/
@@ -125,6 +125,7 @@ static void emit(const char *txt, int len);
125125
%option 8bit
126126
%option never-interactive
127127
%option nodefault
128+
%option noinput
128129
%option nounput
129130
%option noyywrap
130131

src/interfaces/ecpg/preproc/pgc.l

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
*
1414
* IDENTIFICATION
15-
* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.163 2008/02/17 18:14:29 meskes Exp $
15+
* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.164 2008/05/09 15:36:31 petere Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -76,6 +76,7 @@ static struct _if_value
7676
%option 8bit
7777
%option never-interactive
7878
%option nodefault
79+
%option noinput
7980
%option noyywrap
8081

8182
%option yylineno

src/pl/plpgsql/src/scan.l

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/pl/plpgsql/src/scan.l,v 1.61 2008/04/01 03:51:09 tgl Exp $
12+
* $PostgreSQL: pgsql/src/pl/plpgsql/src/scan.l,v 1.62 2008/05/09 15:36:31 petere Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -47,6 +47,7 @@ bool plpgsql_SpaceScanned = false;
4747
%option 8bit
4848
%option never-interactive
4949
%option nodefault
50+
%option noinput
5051
%option nounput
5152
%option noyywrap
5253
%option prefix="plpgsql_base_yy"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy