- Notifications
You must be signed in to change notification settings - Fork5
Commitd923125
committed
Fix incorrect uses of gzFile
gzFile is already a pointer, so code likegzFile *handle = gzopen(...)is wrong.This used to pass silently because gzFile used to be defined as void*,and you can assign a void* to a void**. But somewhere between zlibversions 1.2.3.4 and 1.2.6, the definition of gzFile was changed tostruct gzFile_s *, and with that new definition this usage causescompiler warnings.So remove all those extra pointer decorations.There is a related issue in pg_backup_archiver.h, whereFILE *FH; /* General purpose file handle */is used throughout pg_dump as sometimes a real FILE* and sometimes agzFile handle, which also causes warnings now. This is not yet fixedhere, because it might need more code restructuring.1 parent8e5f430 commitd923125
File tree
3 files changed
+7
-10
lines changed- src/bin
- pg_basebackup
- pg_dump
3 files changed
+7
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | | - | |
63 | | - | |
| 64 | + | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
66 | 67 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 68 | | |
72 | 69 | | |
73 | 70 | | |
| |||
0 commit comments
Comments
(0)