mark zlib return values as UNUSED to fix fast build

This commit is contained in:
Joel Dice 2007-09-17 07:16:00 -06:00
parent b88438d2fd
commit 59d26362fa

View File

@ -279,7 +279,7 @@ class JarIndex {
if (zStream == 0) { if (zStream == 0) {
zStream = static_cast<z_stream*>(s->allocate(sizeof(z_stream))); zStream = static_cast<z_stream*>(s->allocate(sizeof(z_stream)));
memset(zStream, 0, sizeof(z_stream)); memset(zStream, 0, sizeof(z_stream));
int r = inflateInit(zStream); int r UNUSED = inflateInit(zStream);
assert(s, r == Z_OK); assert(s, r == Z_OK);
} }
@ -289,7 +289,7 @@ class JarIndex {
zStream->next_out = region->data; zStream->next_out = region->data;
zStream->avail_out = region->length(); zStream->avail_out = region->length();
int r = inflate(zStream, Z_SYNC_FLUSH); int r UNUSED = inflate(zStream, Z_SYNC_FLUSH);
assert(s, r == Z_STREAM_END); assert(s, r == Z_STREAM_END);
} break; } break;