]> 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 3fd10d5a60f4b785f784b914f16f9ec9b682c40e..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.
     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;
     do {} while (wait_); 
 
     int i;