From dacafa9527a2dc0a56d72ad0bc35aa4b218e6028 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 15 Feb 2006 04:24:10 +0000 Subject: fix warning about ignoring return value of realloc --- test/malloc/testmalloc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/malloc') 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; -- cgit v1.2.3