- Notifications
You must be signed in to change notification settings - Fork5
Commit92d4294
committed
psql: Fix some strange code in SQL help creation
Struct QL_HELP used to be defined as static in the sql_help.h headerfile, which is included in sql_help.c and help.c, thus creating twoseparate instances of the struct. This causes a warning from GCC 6,because the struct is not used in sql_help.c.Instead, declare the struct as extern in the header file and define itin sql_help.c. This also allows making a bunch of functions staticbecause they are no longer needed outside of sql_help.c.Reviewed-by: Thomas Munro <thomas.munro@enterprisedb.com>1 parent0d0644d commit92d4294
1 file changed
+10
-10
lines changedLines changed: 10 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
62 |
| - | |
63 |
| - | |
64 | 62 |
| |
65 | 63 |
| |
66 | 64 |
| |
| |||
72 | 70 |
| |
73 | 71 |
| |
74 | 72 |
| |
| 73 | + | |
75 | 74 |
| |
76 | 75 |
| |
77 | 76 |
| |
| |||
83 | 82 |
| |
84 | 83 |
| |
85 | 84 |
| |
| 85 | + | |
| 86 | + | |
86 | 87 |
| |
87 | 88 |
| |
88 | 89 |
| |
| |||
170 | 171 |
| |
171 | 172 |
| |
172 | 173 |
| |
173 |
| - | |
174 |
| - | |
| 174 | + | |
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
| |||
180 | 180 |
| |
181 | 181 |
| |
182 | 182 |
| |
183 |
| - | |
184 |
| - | |
185 |
| - | |
| 183 | + | |
| 184 | + | |
186 | 185 |
| |
187 | 186 |
| |
188 | 187 |
| |
189 | 188 |
| |
190 | 189 |
| |
191 |
| - | |
| 190 | + | |
192 | 191 |
| |
193 | 192 |
| |
194 | 193 |
| |
195 | 194 |
| |
196 | 195 |
| |
197 | 196 |
| |
198 | 197 |
| |
199 |
| - | |
| 198 | + | |
200 | 199 |
| |
201 | 200 |
| |
| 201 | + | |
202 | 202 |
| |
203 |
| - | |
| 203 | + | |
204 | 204 |
| |
205 | 205 |
| |
206 | 206 |
| |
|
0 commit comments
Comments
(0)