forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9fb855f
committed
Include bison header files into implementation files
Before Bison 3.4, the generated parser implementation files run afoulof -Wmissing-variable-declarations (in spite of commitab61c40)because declarations for yylval and possibly yylloc are missing. Thegenerated header files contain an extern declaration, but theimplementation files don't include the header files. Since Bison 3.4,the generated implementation files automatically include the generatedheader files, so then it works.To make this work with older Bison versions as well, include thegenerated header file from the .y file.(With older Bison versions, the generated implementation file containseffectively a copy of the header file pasted in, so including theheader file is redundant. But we know this works anyway because thecore grammar uses this arrangement already.)Discussion:https://www.postgresql.org/message-id/flat/e0a62134-83da-4ba4-8cdb-ceb0111c95ce@eisentraut.org1 parent63bef4d commit9fb855f
File tree
8 files changed
+13
-3
lines changed- contrib
- cube
- seg
- src
- backend
- bootstrap
- replication
- interfaces/ecpg/preproc
- pl/plpgsql/src
- test/isolation
8 files changed
+13
-3
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 |
| |
15 | 20 |
| |
16 | 21 |
| |
17 | 22 |
| |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 | 23 |
| |
22 | 24 |
| |
23 | 25 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| 15 | + | |
15 | 16 |
| |
16 | 17 |
| |
17 | 18 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
| 35 | + | |
35 | 36 |
| |
36 | 37 |
| |
37 | 38 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| 25 | + | |
25 | 26 |
| |
26 | 27 |
| |
27 | 28 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
| 21 | + | |
20 | 22 |
| |
21 | 23 |
| |
22 | 24 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| 8 | + | |
8 | 9 |
| |
9 | 10 |
| |
10 | 11 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + | |
16 | 17 |
| |
17 | 18 |
| |
18 | 19 |
| |
|
0 commit comments
Comments
(0)