aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2023-04-17 20:21:58 -0700
committerMark Adler <madler@alumni.caltech.edu>2023-04-17 20:21:58 -0700
commit3365464851a972fe8ad217b93e80c7cd185a8179 (patch)
tree19c887ada94374ef4186df9ab0a2029566ad87ed /test
parent05527a1b1ef39014b44281fbbbec5deabb4be106 (diff)
downloadzlib-3365464851a972fe8ad217b93e80c7cd185a8179.tar.gz
zlib-3365464851a972fe8ad217b93e80c7cd185a8179.tar.bz2
zlib-3365464851a972fe8ad217b93e80c7cd185a8179.zip
Fix warnings on test/infcover.c.
Diffstat (limited to 'test')
-rw-r--r--test/infcover.c5
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)
373 mem_setup(&strm); 373 mem_setup(&strm);
374 strm.avail_in = 0; 374 strm.avail_in = 0;
375 strm.next_in = Z_NULL; 375 strm.next_in = Z_NULL;
376 ret = inflateInit_(&strm, ZLIB_VERSION - 1, (int)sizeof(z_stream)); 376 ret = inflateInit_(&strm, "!", (int)sizeof(z_stream));
377 assert(ret == Z_VERSION_ERROR); 377 assert(ret == Z_VERSION_ERROR);
378 mem_done(&strm, "wrong version"); 378 mem_done(&strm, "wrong version");
379 379
@@ -462,7 +462,8 @@ local unsigned pull(void *desc, unsigned char **buf)
462 462
463local int push(void *desc, unsigned char *buf, unsigned len) 463local int push(void *desc, unsigned char *buf, unsigned len)
464{ 464{
465 buf += len; 465 (void)buf;
466 (void)len;
466 return desc != Z_NULL; /* force error if desc not null */ 467 return desc != Z_NULL; /* force error if desc not null */
467} 468}
468 469