OSDN Git Service

fix warning about ignoring return value of realloc
authorMike Frysinger <vapier@gentoo.org>
Wed, 15 Feb 2006 04:24:10 +0000 (04:24 -0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 15 Feb 2006 04:24:10 +0000 (04:24 -0000)
test/malloc/testmalloc.c

index 158bf42..caf08a9 100644 (file)
@@ -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;