summaryrefslogtreecommitdiff
path: root/zutil.c
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2021-06-13 15:16:20 -0700
committerHans Kristian Rosbach <hk-git@circlestorm.org>2021-06-21 11:19:21 +0200
commitf0a801edc93c2f58e705e1cf76011560727084d2 (patch)
tree9c2b5a30a8125b64b078e09febb8a697c8b383f4 /zutil.c
parent89992dfbf11c3665f9c7808237a9ba865beb82f2 (diff)
Added Z_UNUSED define for ignore unused variables.
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 b38dc45..f07c84d 100644
--- a/zutil.c
+++ b/zutil.c
@@ -101,11 +101,11 @@ const char * Z_EXPORT PREFIX(zError)(int err) {
}
void Z_INTERNAL *zng_calloc(void *opaque, unsigned items, unsigned size) {
- (void)opaque;
+ Z_UNUSED(opaque);
return zng_alloc((size_t)items * (size_t)size);
}
void Z_INTERNAL zng_cfree(void *opaque, void *ptr) {
- (void)opaque;
+ Z_UNUSED(opaque);
zng_free(ptr);
}