X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=test%2Fmap_test2.c;h=8ab2b6fd7cd6bdf11edc1e47fa8ced1733a9b58b;hb=973c2b13fe82d6ebd030cd58869fa237b1fe5370;hp=b660c1ab94e1030ad694566ddf264c31cafa8111;hpb=0f6e9afb06b03647c4c5f2499ddab12f42b4340e;p=nbds diff --git a/test/map_test2.c b/test/map_test2.c index b660c1a..8ab2b6f 100644 --- a/test/map_test2.c +++ b/test/map_test2.c @@ -138,7 +138,7 @@ void *add_remove_worker (void *arg) { int d = wd->id; int iters = 10000; - SYNC_ADD(wd->wait, -1); + (void)SYNC_ADD(wd->wait, -1); do { } while (*wd->wait); // wait for all workers to be ready map_key_t key; @@ -318,7 +318,7 @@ void big_iteration_test (CuTest* tc) { int main (void) { lwt_set_trace_level("H3m3l2t0"); - static const map_impl_t *map_types[] = { &ll_map_impl, &sl_map_impl, &ht_map_impl }; + static const map_impl_t *map_types[] = { &MAP_IMPL_LL, &MAP_IMPL_SL, &MAP_IMPL_HT }; for (int i = 0; i < sizeof(map_types)/sizeof(*map_types); ++i) { map_type_ = map_types[i];