svn commit: trunk/uClibc/test/malloc

vapier at uclibc.org vapier at uclibc.org
Wed Feb 15 04:24:11 UTC 2006


Author: vapier
Date: 2006-02-14 20:24:10 -0800 (Tue, 14 Feb 2006)
New Revision: 14032

Log:
fix warning about ignoring return value of realloc

Modified:
   trunk/uClibc/test/malloc/testmalloc.c


Changeset:
Modified: trunk/uClibc/test/malloc/testmalloc.c
===================================================================
--- trunk/uClibc/test/malloc/testmalloc.c	2006-02-15 04:21:53 UTC (rev 14031)
+++ trunk/uClibc/test/malloc/testmalloc.c	2006-02-15 04:24:10 UTC (rev 14032)
@@ -67,7 +67,10 @@
 			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;




More information about the uClibc-cvs mailing list