summaryrefslogtreecommitdiff
path: root/zutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'zutil.c')
-rw-r--r--zutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zutil.c b/zutil.c
index d9fda09..02b9ccf 100644
--- a/zutil.c
+++ b/zutil.c
@@ -110,15 +110,15 @@ const char * ZEXPORT zError(int err)
void ZLIB_INTERNAL *zcalloc (void *opaque, unsigned items, unsigned size)
{
- if (opaque) items += size - size; /* make compiler happy */
+ (void)opaque;
return sizeof(uInt) > 2 ? (void *)malloc(items * size) :
(void *)calloc(items, size);
}
void ZLIB_INTERNAL zcfree (void *opaque, void *ptr)
{
+ (void)opaque;
free(ptr);
- if (opaque) return; /* make compiler happy */
}
#endif /* MY_ZCALLOC */