Explorar o código

fix warning about ignoring return value of realloc

Mike Frysinger %!s(int64=20) %!d(string=hai) anos
pai
achega
dacafa9527
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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;