Skip to content

Commit 534cce2

Browse files
committed
Revert "Fix bogus %name-prefix option syntax in all our Bison files."
This reverts commit a670f5e. It turns out that the %name-prefix syntax without "=" does not work at all in pre-2.4 Bison. We are not prepared to make such a large jump in minimum required Bison version just to suppress a warning message in a version hardly any developers are using yet. When 3.0 gets more popular, we'll figure out a way to deal with this. In the meantime, BISONFLAGS=-Wno-deprecated is recommendable for anyone using 3.0 who doesn't want to see the warning.
1 parent a670f5e commit 534cce2

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

contrib/cube/cubeparse.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static NDBOX * write_point_as_box(char *s, int dim);
3939
/* BISON Declarations */
4040
%parse-param {NDBOX **result}
4141
%expect 0
42-
%name-prefix "cube_yy"
42+
%name-prefix="cube_yy"
4343

4444
%token CUBEFLOAT O_PAREN C_PAREN O_BRACKET C_BRACKET COMMA
4545
%start box

contrib/seg/segparse.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
/* BISON Declarations */
4343
%parse-param {SEG *result}
4444
%expect 0
45-
%name-prefix "seg_yy"
45+
%name-prefix="seg_yy"
4646

4747
%union {
4848
struct BND {

src/backend/bootstrap/bootparse.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static int num_columns_read = 0;
9393
%}
9494

9595
%expect 0
96-
%name-prefix "boot_yy"
96+
%name-prefix="boot_yy"
9797

9898
%union
9999
{

src/backend/parser/gram.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static TypeName *TableFuncTypeName(List *columns);
134134

135135
%pure-parser
136136
%expect 0
137-
%name-prefix "base_yy"
137+
%name-prefix="base_yy"
138138
%locations
139139

140140
%parse-param {core_yyscan_t yyscanner}

src/interfaces/ecpg/preproc/ecpg.header

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ add_typedef(char *name, char * dimension, char * length, enum ECPGttype type_enu
464464
%}
465465

466466
%expect 0
467-
%name-prefix "base_yy"
467+
%name-prefix="base_yy"
468468
%locations
469469

470470
%union {

src/pl/plpgsql/src/gram.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ static List *read_raise_options(void);
108108
%}
109109

110110
%expect 0
111-
%name-prefix "plpgsql_yy"
111+
%name-prefix="plpgsql_yy"
112112
%locations
113113

114114
%union {

0 commit comments

Comments
 (0)