forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit67c0ef9
committed
Improve const use in zlib-using code
If we define ZLIB_CONST before including zlib.h, zlib augments someinterfaces with const decorations. By doing that we can keep our owninterfaces cleaner and can remove some unconstify calls.ZLIB_CONST was introduced in zlib 1.2.5.2 (17 Dec 2011). Whencompiling with older zlib releases, you might now get compilerwarnings about discarding qualifiers.CentOS 6 has zlib 1.2.3, but in8e278b6, we removed support for theOpenSSL release in CentOS 6, so it seems ok to de-support the zlibrelease in CentOS 6 as well.Reviewed-by: Tristan Partin <tristan@neon.tech>Discussion:https://www.postgresql.org/message-id/flat/33462926-bb1e-7cc9-8d92-d86318e8ed1d%40eisentraut.org1 parentfdd79d8 commit67c0ef9
File tree
4 files changed
+9
-5
lines changed- contrib/pgcrypto
- src
- bin/pg_basebackup
- include
4 files changed
+9
-5
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
113 | 113 |
| |
114 | 114 |
| |
115 | 115 |
| |
116 |
| - | |
| 116 | + | |
117 | 117 |
| |
118 | 118 |
| |
119 | 119 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
269 | 269 |
| |
270 | 270 |
| |
271 | 271 |
| |
272 |
| - | |
| 272 | + | |
273 | 273 |
| |
274 | 274 |
| |
275 | 275 |
| |
|
Lines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
705 | 705 |
| |
706 | 706 |
| |
707 | 707 |
| |
708 |
| - | |
| 708 | + | |
709 | 709 |
| |
710 | 710 |
| |
711 | 711 |
| |
| |||
782 | 782 |
| |
783 | 783 |
| |
784 | 784 |
| |
785 |
| - | |
786 |
| - | |
| 785 | + | |
787 | 786 |
| |
788 | 787 |
| |
789 | 788 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
78 | 83 |
| |
79 | 84 |
| |
80 | 85 |
| |
|
0 commit comments
Comments
(0)