}
strcpy((char*)uncompr, "garbage");
- if (PREFIX(gzread)(file, uncompr, (unsigned)uncomprLen) != len) {
+ if (PREFIX(gzread)(file, uncompr, (unsigned)uncomprLen) != (int)len) {
fprintf(stderr, "gzread err: %s\n", PREFIX(gzerror)(file, &err));
exit(1);
}
/* ===========================================================================
* Test deflateBound() with small buffers
*/
-void test_deflate_bound(unsigned char *compr, size_t comprLen)
+void test_deflate_bound(void)
{
PREFIX3(stream) c_stream; /* compression stream */
int err;
CHECK_ERR(err, "deflate");
}
- err = PREFIX(deflatePending)(&c_stream,ped,bits);
+ err = PREFIX(deflatePending)(&c_stream, ped, bits);
CHECK_ERR(err, "deflatePending");
- if (*bits >= 0 && *bits <=7 && *ped >= 0) {
+ if (*bits >= 0 && *bits <= 7) {
printf("deflatePending(): OK\n");
} else {
printf("deflatePending(): error\n");
/* ===========================================================================
* Test deflatePrime() with small buffers
*/
- void test_deflate_prime(unsigned char *compr, size_t comprLen)
+void test_deflate_prime(unsigned char *compr, size_t comprLen)
{
PREFIX3(stream) c_stream; /* compression stream */
int err;
test_dict_deflate(compr, comprLen);
test_dict_inflate(compr, comprLen, uncompr, uncomprLen);
- test_deflate_bound(compr, comprLen);
+ test_deflate_bound();
test_deflate_copy(compr, comprLen);
test_deflate_get_dict(compr, comprLen);
test_deflate_set_header(compr, comprLen);
uint32_t crc4 = PREFIX(crc32_combine_op)(crc1, crc3, op);
crc1 = PREFIX(crc32_z)(crc1, data + offset, buffSize);
assert(crc1 == crc4);
+ (void)crc1;
(void)crc4;
}
crc1 = PREFIX(crc32_z)(crc1, data + offset, dataLen % buffSize);
crc2 = PREFIX(crc32_z)(crc2, data, dataLen);
assert(crc1 == crc2);
+ (void)crc2;
assert(PREFIX(crc32_combine)(crc1, crc2, dataLen) ==
PREFIX(crc32_combine)(crc1, crc1, dataLen));
adler2 = PREFIX(adler32_z)(adler2, data, dataLen);
assert(adler1 == adler2);
+ (void)adler1;
+ (void)adler2;
assert(PREFIX(adler32_combine)(adler1, adler2, dataLen) ==
PREFIX(adler32_combine)(adler1, adler1, dataLen));