X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=test%2Frcu_test.c;fp=test%2Frcu_test.c;h=518125379f58336ab4e19324491a815c5529d027;hp=3fd10d5a60f4b785f784b914f16f9ec9b682c40e;hb=6b4f3ea4891b6c0e65dfd6d41f49aee2daa9e23d;hpb=0f6e9afb06b03647c4c5f2499ddab12f42b4340e diff --git a/test/rcu_test.c b/test/rcu_test.c index 3fd10d5..5181253 100644 --- a/test/rcu_test.c +++ b/test/rcu_test.c @@ -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;