summaryrefslogtreecommitdiffstats
path: root/compat/zlib/test/infcover.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2023-09-06 20:35:27 (GMT)
committerdgp <dgp@users.sourceforge.net>2023-09-06 20:35:27 (GMT)
commit3f3dfa54cb349fb5d39961cd23c82d600247e9e7 (patch)
treea39d1803fadea4511e07f0995c0ed1ad7d0e0d95 /compat/zlib/test/infcover.c
parent4b135ba7bf313f34c5718a14263a24b80ee103c8 (diff)
parentbec1da2042481302d3230238bdf8e1d17ecae317 (diff)
downloadtcl-3f3dfa54cb349fb5d39961cd23c82d600247e9e7.zip
tcl-3f3dfa54cb349fb5d39961cd23c82d600247e9e7.tar.gz
tcl-3f3dfa54cb349fb5d39961cd23c82d600247e9e7.tar.bz2
merge trunk
Diffstat (limited to 'compat/zlib/test/infcover.c')
-rw-r--r--compat/zlib/test/infcover.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/compat/zlib/test/infcover.c b/compat/zlib/test/infcover.c
index 2be0164..8912c40 100644
--- a/compat/zlib/test/infcover.c
+++ b/compat/zlib/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 */
}