forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit725cd4d
committed
Add casts to simplehash.h to silence C++ warnings.
Casting the result of palloc etc. to the intended type is more perproject style anyway.(The fact that cpluspluscheck doesn't notice these problems isbecause it doesn't expand any macros, which seems like a troublingshortcoming. Don't have a good idea about improving that.)Back-patch to v13, which is as far as the patch applies cleanly;doesn't seem worth working harder.David GeierDiscussion:https://postgr.es/m/aa5d88a3-71f4-3455-11cf-82de0372c941@gmail.com1 parenta5737e7 commit725cd4d
1 file changed
+5
-5
lines changedLines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
436 | 436 |
| |
437 | 437 |
| |
438 | 438 |
| |
439 |
| - | |
| 439 | + | |
440 | 440 |
| |
441 |
| - | |
| 441 | + | |
442 | 442 |
| |
443 | 443 |
| |
444 | 444 |
| |
| |||
448 | 448 |
| |
449 | 449 |
| |
450 | 450 |
| |
451 |
| - | |
| 451 | + | |
452 | 452 |
| |
453 | 453 |
| |
454 | 454 |
| |
| |||
493 | 493 |
| |
494 | 494 |
| |
495 | 495 |
| |
496 |
| - | |
| 496 | + | |
497 | 497 |
| |
498 | 498 |
| |
499 | 499 |
| |
| |||
1059 | 1059 |
| |
1060 | 1060 |
| |
1061 | 1061 |
| |
1062 |
| - | |
| 1062 | + | |
1063 | 1063 |
| |
1064 | 1064 |
| |
1065 | 1065 |
| |
|
0 commit comments
Comments
(0)