summaryrefslogtreecommitdiff
path: root/test/malloc/testmalloc.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-15 04:24:10 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-15 04:24:10 +0000
commitdacafa9527a2dc0a56d72ad0bc35aa4b218e6028 (patch)
treedcf4ed7b6fb0019e19c2412492b93539bd66064e /test/malloc/testmalloc.c
parentb9f695b09c12ef0ff8ee49b95f1b6fd248335063 (diff)
fix warning about ignoring return value of realloc
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;