From: Ivan Maidanski Date: Fri, 30 Sep 2011 09:48:34 +0000 (+0400) Subject: Fix compiler warnings in disclaim tests X-Git-Tag: gc7_3alpha2~320^2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=febfda92c2ca3ba2d7c2652744097839c5a0475a;p=gc Fix compiler warnings in disclaim tests --- diff --git a/tests/disclaim_bench.c b/tests/disclaim_bench.c index 4dab169e..dfd71be3 100644 --- a/tests/disclaim_bench.c +++ b/tests/disclaim_bench.c @@ -17,11 +17,11 @@ #include #include +#include "private/gc_priv.h" + #include "atomic_ops.h" #include "gc_disclaim.h" -#include "private/gc_priv.h" - static int free_count = 0; struct testobj_s { diff --git a/tests/disclaim_test.c b/tests/disclaim_test.c index 3bb175fc..c3161a9a 100644 --- a/tests/disclaim_test.c +++ b/tests/disclaim_test.c @@ -53,7 +53,7 @@ void GC_CALLBACK pair_dct(void *obj, void *cd) /* Invalidate it. */ p->is_valid = 0; p->checksum = 0; - p->car = NULL; + p->car = cd; p->cdr = NULL; } @@ -128,7 +128,7 @@ void *test(void *data) if (rand() % 8 == 1) pair_check_rec(pop[rand() % POP_SIZE]); } - return 0; + return data; } int main(void)