Browse Source

fix warning about ignoring return value of realloc

Mike Frysinger 19 years ago
parent
commit
dacafa9527
1 changed files with 4 additions and 1 deletions
  1. 4 1
      test/malloc/testmalloc.c

+ 4 - 1
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;