forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8cfeaec
committed
Suppress implicit-conversion warnings seen with newer clang versions.
We were assigning values near 255 through "char *" pointers. On machineswhere char is signed, that's not entirely kosher, and it's reasonablefor compilers to warn about it.A better solution would be to change the pointer type to "unsigned char *",but that would be vastly more invasive. For the moment, let's just applythis simple backpatchable solution.Aleksander AlekseevDiscussion:https://postgr.es/m/20170220141239.GD12278@e733.localdomainDiscussion:https://postgr.es/m/2839.1490714708@sss.pgh.pa.us1 parentab89e46 commit8cfeaec
File tree
3 files changed
+5
-5
lines changed- src
- backend/access/transam
- bin/pg_resetwal
3 files changed
+5
-5
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5044 | 5044 |
| |
5045 | 5045 |
| |
5046 | 5046 |
| |
5047 |
| - | |
| 5047 | + | |
5048 | 5048 |
| |
5049 | 5049 |
| |
5050 | 5050 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
739 | 739 |
| |
740 | 740 |
| |
741 | 741 |
| |
742 |
| - | |
| 742 | + | |
743 | 743 |
| |
744 | 744 |
| |
745 | 745 |
| |
| |||
749 | 749 |
| |
750 | 750 |
| |
751 | 751 |
| |
752 |
| - | |
| 752 | + | |
753 | 753 |
| |
754 | 754 |
| |
755 | 755 |
| |
756 | 756 |
| |
757 | 757 |
| |
758 |
| - | |
| 758 | + | |
759 | 759 |
| |
760 | 760 |
| |
761 | 761 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1095 | 1095 |
| |
1096 | 1096 |
| |
1097 | 1097 |
| |
1098 |
| - | |
| 1098 | + | |
1099 | 1099 |
| |
1100 | 1100 |
| |
1101 | 1101 |
| |
|
0 commit comments
Comments
(0)