forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit33b2a2c
committed
Fix statically allocated struct with FLEXIBLE_ARRAY_MEMBER member.
clang complains about this, not unreasonably, so define another structthat's explicitly for a WordEntryPos with exactly one element.While at it, get rid of pretty dubious use of a static variable formore than one purpose --- if it were being treated as const maybeI'd be okay with this, but it isn't.1 parent33a3b03 commit33b2a2c
2 files changed
+24
-11
lines changedLines changed: 17 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
198 |
| - | |
199 |
| - | |
200 |
| - | |
201 |
| - | |
202 |
| - | |
203 |
| - | |
204 | 198 |
| |
205 | 199 |
| |
206 | 200 |
| |
207 | 201 |
| |
| 202 | + | |
| 203 | + | |
208 | 204 |
| |
209 | 205 |
| |
210 | 206 |
| |
| |||
228 | 224 |
| |
229 | 225 |
| |
230 | 226 |
| |
231 |
| - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
232 | 233 |
| |
233 | 234 |
| |
234 | 235 |
| |
| |||
241 | 242 |
| |
242 | 243 |
| |
243 | 244 |
| |
244 |
| - | |
| 245 | + | |
245 | 246 |
| |
246 | 247 |
| |
247 | 248 |
| |
| |||
256 | 257 |
| |
257 | 258 |
| |
258 | 259 |
| |
259 |
| - | |
| 260 | + | |
260 | 261 |
| |
261 | 262 |
| |
262 | 263 |
| |
| |||
282 | 283 |
| |
283 | 284 |
| |
284 | 285 |
| |
| 286 | + | |
285 | 287 |
| |
286 | 288 |
| |
287 | 289 |
| |
| |||
291 | 293 |
| |
292 | 294 |
| |
293 | 295 |
| |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
294 | 300 |
| |
295 | 301 |
| |
296 | 302 |
| |
| |||
312 | 318 |
| |
313 | 319 |
| |
314 | 320 |
| |
315 |
| - | |
316 |
| - | |
| 321 | + | |
| 322 | + | |
317 | 323 |
| |
318 | 324 |
| |
319 | 325 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
69 | 76 |
| |
70 | 77 |
| |
71 | 78 |
| |
|
0 commit comments
Comments
(0)