A remarkably creative and diverse set of approaches to letting the
compiler know that opaque was being used when it wasn't is changed
by this commit to the more standard (void)opaque.
Conflicts:
zutil.c
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 */