]> pd.if.org Git - nbds/blobdiff - test/rcu_test.c
fix compiler warnings/error under gcc 4.1 and 4.2
[nbds] / test / rcu_test.c
index d4696481a8b1369759c93fb6f5307b9cf00cfe37..518125379f58336ab4e19324491a815c5529d027 100644 (file)
@@ -57,7 +57,7 @@ void *worker (void *arg) {
     unsigned int rand_seed = (unsigned int)id + 1;
 
     // Wait for all the worker threads to be ready.
-    __sync_fetch_and_add(&wait_, -1);
+    (void)__sync_fetch_and_add(&wait_, -1);
     do {} while (wait_); 
 
     int i;
@@ -78,7 +78,7 @@ void *worker (void *arg) {
 }
 
 int main (int argc, char **argv) {
-    //lwt_set_trace_level("m0r0");
+    lwt_set_trace_level("m3r3");
 
     int num_threads = 2;
     if (argc == 2)