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

Commit2e95f1f

Browse files
committed
Add "%option warn" to all flex input files that lacked it.
This is recommended in the flex manual, and there seems no good reasonnot to use it everywhere.
1 parent0371d4d commit2e95f1f

File tree

7 files changed

+9
-2
lines changed

7 files changed

+9
-2
lines changed

‎contrib/cube/cubescan.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ void cube_scanner_finish(void);
3232
%optionnoinput
3333
%optionnounput
3434
%optionnoyywrap
35+
%optionwarn
3536
%optionprefix="cube_yy"
3637

3738

‎contrib/seg/segscan.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ void seg_scanner_finish(void);
3030
%optionnoinput
3131
%optionnounput
3232
%optionnoyywrap
33+
%optionwarn
3334
%optionprefix="seg_yy"
3435

3536

‎src/backend/bootstrap/bootscanner.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ static intyyline = 1;/* line number for error reporting */
5555
%optionnoinput
5656
%optionnounput
5757
%optionnoyywrap
58+
%optionwarn
5859
%optionprefix="boot_yy"
5960

6061

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ static char *GUC_scanstr(const char *s);
5151
%option noinput
5252
%option nounput
5353
%option noyywrap
54+
%option warn
5455
%option prefix="GUC_yy"
5556

5657

‎src/bin/psql/psqlscan.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ static void escape_variable(bool as_ident);
132132
%option noinput
133133
%option nounput
134134
%option noyywrap
135+
%option warn
135136

136137
/*
137138
* All of the following definitions and rules should exactly match

‎src/interfaces/ecpg/preproc/pgc.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ static struct _if_value
8484
%optionnodefault
8585
%optionnoinput
8686
%optionnoyywrap
87+
%optionwarn
8788

8889
%optionyylineno
8990

‎src/test/isolation/specscanner.l

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ static intyyline = 1;/* line number for error reporting */
1515
staticchar litbuf[1024];
1616
staticint litbufpos =0;
1717

18-
staticvoidaddlitchar(constchar c);
18+
staticvoidaddlitchar(char c);
1919

2020
%}
2121

@@ -25,6 +25,7 @@ static void addlitchar(const char c);
2525
%optionnoinput
2626
%optionnounput
2727
%optionnoyywrap
28+
%optionwarn
2829
%optionprefix="spec_yy"
2930

3031

@@ -93,7 +94,7 @@ teardown{ return(TEARDOWN); }
9394
%%
9495

9596
staticvoid
96-
addlitchar(constchar c)
97+
addlitchar(char c)
9798
{
9899
if (litbufpos >=sizeof(litbuf) -1)
99100
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp