]> pd.if.org Git - nbds/blobdiff - test/map_test2.c
fix compiler warnings/error under gcc 4.1 and 4.2
[nbds] / test / map_test2.c
index 9fc6fe3297d14f3d50d19b71236f5ec91ed5193a..b239cfc190cac1b0e7c4dc28b684cc8b6f8d9713 100644 (file)
@@ -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;
@@ -316,8 +316,7 @@ void big_iteration_test (CuTest* tc) {
 }
 
 int main (void) {
-
-    lwt_set_trace_level("l3");
+    lwt_set_trace_level("H3m3l2t0");
 
     static const map_impl_t *map_types[] = { &ll_map_impl, &sl_map_impl, &ht_map_impl };
     for (int i = 0; i < sizeof(map_types)/sizeof(*map_types); ++i) {