diff options
Diffstat (limited to 'zutil.c')
-rw-r--r-- | zutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |