From a9615bc6aa2ae98cba4fdf089a92864d1e385580 Mon Sep 17 00:00:00 2001 From: theodus Date: Tue, 12 Feb 2019 20:22:10 -0500 Subject: [PATCH] mark variables unused in release build --- src/test/func/malloc/malloc.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/func/malloc/malloc.cc b/src/test/func/malloc/malloc.cc index fd8eb2d..8c08b9e 100644 --- a/src/test/func/malloc/malloc.cc +++ b/src/test/func/malloc/malloc.cc @@ -31,6 +31,7 @@ void check_result(size_t size, void* p, int err, bool null) { fprintf(stderr, "%p, errno: %s\n", p, strerror(errno)); // TODO assert(errno == err); + UNUSED(err); if (null) { assert(p == nullptr); @@ -38,6 +39,7 @@ void check_result(size_t size, void* p, int err, bool null) else { assert(malloc_usable_size(p) >= size); + UNUSED(size); free(p); } }