]> pd.if.org Git - nbds/blobdiff - test/haz_test.c
fix compiler warnings/error under gcc 4.1 and 4.2
[nbds] / test / haz_test.c
index c55ad0ec2698c5afadd7eb31fcb20bee52802132..a84c7be6135447f2a8e38982fa071ddb08f925b8 100644 (file)
@@ -36,7 +36,7 @@ void *worker (void *arg) {
     haz_t *hp0 = haz_get_static(0);
 
     // 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;