forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite7128e8
committed
Create function prototype as part of PG_FUNCTION_INFO_V1 macro
Because of gcc -Wmissing-prototypes, all functions in dynamicallyloadable modules must have a separate prototype declaration. This ismeant to detect global functions that are not declared in header files,but in cases where the function is called via dfmgr, this is redundant.Besides filling up space with boilerplate, this is a frequent source ofcompiler warnings in extension modules.We can fix that by creating the function prototype as part of thePG_FUNCTION_INFO_V1 macro, which such modules have to use anyway. Thatmakes the code of modules cleaner, because there is one less place wherethe entry points have to be listed, and creates an additional check thatfunctions have the right prototype.Remove now redundant prototypes from contrib and other modules.1 parent0156315 commite7128e8
File tree
88 files changed
+5
-666
lines changed- contrib
- adminpack
- btree_gin
- btree_gist
- chkpass
- citext
- cube
- dict_int
- dict_xsyn
- earthdistance
- file_fdw
- fuzzystrmatch
- hstore
- intarray
- lo
- ltree
- pageinspect
- pg_buffercache
- pg_freespacemap
- pg_prewarm
- pg_stat_statements
- pg_trgm
- pg_upgrade_support
- pgcrypto
- pgrowlocks
- pgstattuple
- postgres_fdw
- seg
- spi
- sslinfo
- tcn
- test_parser
- test_shm_mq
- tsearch2
- unaccent
- uuid-ossp
- worker_spi
- xml2
- src
- include
- pl
- plperl
- plpgsql/src
- plpython
- tcl
- test/regress
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
88 files changed
+5
-666
lines changedLines changed: 0 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 | 43 |
| |
49 | 44 |
| |
50 | 45 |
| |
|
Lines changed: 0 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 |
| - | |
36 | 35 |
| |
37 | 36 |
| |
38 | 37 |
| |
| |||
59 | 58 |
| |
60 | 59 |
| |
61 | 60 |
| |
62 |
| - | |
63 | 61 |
| |
64 | 62 |
| |
65 | 63 |
| |
| |||
109 | 107 |
| |
110 | 108 |
| |
111 | 109 |
| |
112 |
| - | |
113 | 110 |
| |
114 | 111 |
| |
115 | 112 |
| |
| |||
182 | 179 |
| |
183 | 180 |
| |
184 | 181 |
| |
185 |
| - | |
186 | 182 |
| |
187 | 183 |
| |
188 | 184 |
| |
| |||
404 | 400 |
| |
405 | 401 |
| |
406 | 402 |
| |
407 |
| - | |
408 | 403 |
| |
409 | 404 |
| |
410 | 405 |
| |
|
Lines changed: 0 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 | 22 |
| |
31 | 23 |
| |
32 | 24 |
| |
|
Lines changed: 0 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 | 21 |
| |
29 | 22 |
| |
30 | 23 |
| |
|
Lines changed: 0 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 | 27 |
| |
36 | 28 |
| |
37 | 29 |
| |
| |||
97 | 89 |
| |
98 | 90 |
| |
99 | 91 |
| |
100 |
| - | |
101 | 92 |
| |
102 | 93 |
| |
103 | 94 |
| |
|
Lines changed: 0 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 | 27 |
| |
36 | 28 |
| |
37 | 29 |
| |
| |||
115 | 107 |
| |
116 | 108 |
| |
117 | 109 |
| |
118 |
| - | |
119 | 110 |
| |
120 | 111 |
| |
121 | 112 |
| |
|
Lines changed: 0 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 | 26 |
| |
35 | 27 |
| |
36 | 28 |
| |
| |||
96 | 88 |
| |
97 | 89 |
| |
98 | 90 |
| |
99 |
| - | |
100 | 91 |
| |
101 | 92 |
| |
102 | 93 |
| |
|
Lines changed: 0 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 | 26 |
| |
35 | 27 |
| |
36 | 28 |
| |
| |||
104 | 96 |
| |
105 | 97 |
| |
106 | 98 |
| |
107 |
| - | |
108 | 99 |
| |
109 | 100 |
| |
110 | 101 |
| |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
15 |
| - | |
16 | 14 |
| |
17 | 15 |
| |
18 | 16 |
| |
|
Lines changed: 0 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 | 28 |
| |
36 | 29 |
| |
37 | 30 |
| |
|
Lines changed: 0 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 | 26 |
| |
35 | 27 |
| |
36 | 28 |
| |
| |||
96 | 88 |
| |
97 | 89 |
| |
98 | 90 |
| |
99 |
| - | |
100 | 91 |
| |
101 | 92 |
| |
102 | 93 |
| |
|
Lines changed: 0 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 | 26 |
| |
35 | 27 |
| |
36 | 28 |
| |
| |||
97 | 89 |
| |
98 | 90 |
| |
99 | 91 |
| |
100 |
| - | |
101 | 92 |
| |
102 | 93 |
| |
103 | 94 |
| |
|
Lines changed: 0 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 | 26 |
| |
35 | 27 |
| |
36 | 28 |
| |
| |||
97 | 89 |
| |
98 | 90 |
| |
99 | 91 |
| |
100 |
| - | |
101 | 92 |
| |
102 | 93 |
| |
103 | 94 |
| |
|
Lines changed: 0 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 | 29 |
| |
39 | 30 |
| |
40 | 31 |
| |
| |||
129 | 120 |
| |
130 | 121 |
| |
131 | 122 |
| |
132 |
| - | |
133 | 123 |
| |
134 | 124 |
| |
135 | 125 |
| |
|
Lines changed: 0 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 | 27 |
| |
35 | 28 |
| |
36 | 29 |
| |
|
Lines changed: 0 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 | 26 |
| |
34 | 27 |
| |
35 | 28 |
| |
|
Lines changed: 0 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 | 26 |
| |
35 | 27 |
| |
36 | 28 |
| |
| |||
103 | 95 |
| |
104 | 96 |
| |
105 | 97 |
| |
106 |
| - | |
107 | 98 |
| |
108 | 99 |
| |
109 | 100 |
| |
|
Lines changed: 0 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 | 22 |
| |
32 | 23 |
| |
33 | 24 |
| |
|
Lines changed: 0 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 | 30 |
| |
41 | 31 |
| |
42 | 32 |
| |
| |||
145 | 135 |
| |
146 | 136 |
| |
147 | 137 |
| |
148 |
| - | |
149 | 138 |
| |
150 | 139 |
| |
151 | 140 |
| |
|
0 commit comments
Comments
(0)