Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd35c56e

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

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 intyyline = 1;/* line number for error reporting */
5252
%option8bit
5353
%optionnever-interactive
5454
%optionnodefault
55+
%optionnoinput
5556
%optionnounput
5657
%optionnoyywrap
5758
%optionprefix="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
%option8bit
102102
%optionnever-interactive
103103
%optionnodefault
104+
%optionnoinput
104105
%optionnounput
105106
%optionnoyywrap
106107
%optionprefix="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
%option8bit
7777
%optionnever-interactive
7878
%optionnodefault
79+
%optionnoinput
7980
%optionnoyywrap
8081

8182
%optionyylineno

‎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
%option8bit
4848
%optionnever-interactive
4949
%optionnodefault
50+
%optionnoinput
5051
%optionnounput
5152
%optionnoyywrap
5253
%optionprefix="plpgsql_base_yy"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp