forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita93f397
committed
On architectures where we don't have any special inline code for
GCC, the inner "#if defined(__GNUC__)" can just be omitted in thatarchitecture's block.The existing arrangement with an outer "#if defined(__GNUC__)"doesn't have any obvious benefit, and it encourages missed caseslike this one.BTW, I'd suggest making the definition of clear_lock for HPUX bestatic const slock_t clear_lock = {{-1, -1, -1, -1}};The extra braces are needed to suppress warnings from gcc, anddeclaring it const just seems like good practice.regards, tom lane1 parentb474664 commita93f397
1 file changed
+16
-19
lines changedLines changed: 16 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
230 | 230 |
| |
231 | 231 |
| |
232 | 232 |
| |
233 |
| - | |
234 |
| - | |
235 |
| - | |
236 |
| - | |
237 |
| - | |
238 |
| - | |
239 |
| - | |
240 |
| - | |
241 |
| - | |
242 |
| - | |
243 |
| - | |
244 |
| - | |
245 |
| - | |
246 |
| - | |
247 |
| - | |
248 |
| - | |
249 |
| - | |
250 |
| - | |
251 | 233 |
| |
252 | 234 |
| |
253 | 235 |
| |
| |||
277 | 259 |
| |
278 | 260 |
| |
279 | 261 |
| |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
280 | 274 |
| |
| 275 | + | |
| 276 | + | |
| 277 | + | |
281 | 278 |
| |
282 | 279 |
| |
283 | 280 |
| |
|
0 commit comments
Comments
(0)