The gz* API from zlib takes a "gzFile", not a "gzFile*". Older versions of zlib didn't trigger a warning due to how the funcs were written, but newer ones do. So tweak the type (which in reality shouldn't change anything since it's a typedefed pointer) to work with old/new versions.
Signed-off-by: Mike Frysinger <[email protected]> --- src/warc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/warc.c b/src/warc.c index 57fdcad..9b4329d 100644 --- a/src/warc.c +++ b/src/warc.c @@ -75,7 +75,7 @@ static FILE *warc_current_file; #ifdef HAVE_LIBZ /* The gzip stream for the current WARC file (or NULL, if WARC or gzip is disabled). */ -static gzFile *warc_current_gzfile; +static gzFile warc_current_gzfile; /* The offset of the current gzip record in the WARC file. */ static off_t warc_current_gzfile_offset; -- 1.7.8.6
