summaryrefslogtreecommitdiff
path: root/test/malloc/testmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/malloc/testmalloc.c')
-rw-r--r--test/malloc/testmalloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/malloc/testmalloc.c b/test/malloc/testmalloc.c
index 158bf4236..caf08a9e1 100644
--- a/test/malloc/testmalloc.c
+++ b/test/malloc/testmalloc.c
@@ -67,7 +67,10 @@ int main(void)
goto Failed;
}
}
- realloc(lp, 0);
+ {
+ void *unused_ret = realloc(lp, 0);
+ (void) unused_ret;
+ }
printf("Allocate another 100 nodes 600 bytes each\n");
save = 0;