Преглед изворни кода

fix warning about ignoring return value of realloc

Mike Frysinger пре 19 година
родитељ
комит
dacafa9527
1 измењених фајлова са 4 додато и 1 уклоњено
  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;