Skip to content

Commit 2e95f1f

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 reason not to use it everywhere.
1 parent 0371d4d commit 2e95f1f

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
%option noinput
3333
%option nounput
3434
%option noyywrap
35+
%option warn
3536
%option prefix="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
%option noinput
3131
%option nounput
3232
%option noyywrap
33+
%option warn
3334
%option prefix="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 int yyline = 1; /* line number for error reporting */
5555
%option noinput
5656
%option nounput
5757
%option noyywrap
58+
%option warn
5859
%option prefix="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
%option nodefault
8585
%option noinput
8686
%option noyywrap
87+
%option warn
8788

8889
%option yylineno
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 int yyline = 1; /* line number for error reporting */
1515
static char litbuf[1024];
1616
static int litbufpos = 0;
1717

18-
static void addlitchar(const char c);
18+
static void addlitchar(char c);
1919

2020
%}
2121

@@ -25,6 +25,7 @@ static void addlitchar(const char c);
2525
%option noinput
2626
%option nounput
2727
%option noyywrap
28+
%option warn
2829
%option prefix="spec_yy"
2930

3031

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

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

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