diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2012-03-02 22:30:01 +0200 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2012-03-02 22:30:01 +0200 |
commit | d923125b77c5d698bb8107a533a21627582baa43 (patch) | |
tree | df1511da4e4e6b1edda06c57deeb282c81de5260 /src/backend/access/transam/xlogfuncs.c | |
parent | 8e5f4300fdcadac1bfd72a7d1a0225030226c800 (diff) | |
download | postgresql-d923125b77c5d698bb8107a533a21627582baa43.tar.gz postgresql-d923125b77c5d698bb8107a533a21627582baa43.zip |
Fix incorrect uses of gzFile
gzFile is already a pointer, so code like
gzFile *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 zlib
versions 1.2.3.4 and 1.2.6, the definition of gzFile was changed to
struct gzFile_s *, and with that new definition this usage causes
compiler warnings.
So remove all those extra pointer decorations.
There is a related issue in pg_backup_archiver.h, where
FILE *FH; /* General purpose file handle */
is used throughout pg_dump as sometimes a real FILE* and sometimes a
gzFile handle, which also causes warnings now. This is not yet fixed
here, because it might need more code restructuring.
Diffstat (limited to 'src/backend/access/transam/xlogfuncs.c')
0 files changed, 0 insertions, 0 deletions