diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2023-04-17 20:21:58 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2023-04-17 20:21:58 -0700 |
commit | 3365464851a972fe8ad217b93e80c7cd185a8179 (patch) | |
tree | 19c887ada94374ef4186df9ab0a2029566ad87ed | |
parent | 05527a1b1ef39014b44281fbbbec5deabb4be106 (diff) | |
download | zlib-3365464851a972fe8ad217b93e80c7cd185a8179.tar.gz |
Fix warnings on test/infcover.c.
-rw-r--r-- | test/infcover.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/infcover.c b/test/infcover.c index 2be0164..8912c40 100644 --- a/test/infcover.c +++ b/test/infcover.c @@ -373,7 +373,7 @@ local void cover_support(void) mem_setup(&strm); strm.avail_in = 0; strm.next_in = Z_NULL; - ret = inflateInit_(&strm, ZLIB_VERSION - 1, (int)sizeof(z_stream)); + ret = inflateInit_(&strm, "!", (int)sizeof(z_stream)); assert(ret == Z_VERSION_ERROR); mem_done(&strm, "wrong version"); @@ -462,7 +462,8 @@ local unsigned pull(void *desc, unsigned char **buf) local int push(void *desc, unsigned char *buf, unsigned len) { - buf += len; + (void)buf; + (void)len; return desc != Z_NULL; /* force error if desc not null */ } |