Tests fix: unused variable warnings
[urcu.git] / tests / benchmark / test_urcu_lfs_rcu.c
index ce011439aef4bda0761a90a61ab3e730b411cbdf..9e0bfad44a9adfb98376b0097b662bb2dc4cba49 100644 (file)
@@ -83,9 +83,10 @@ pthread_mutex_t affinity_mutex = PTHREAD_MUTEX_INITIALIZER;
 
 static void set_affinity(void)
 {
+#if HAVE_SCHED_SETAFFINITY
        cpu_set_t mask;
-       int cpu;
-       int ret;
+       int cpu, ret;
+#endif /* HAVE_SCHED_SETAFFINITY */
 
        if (!use_affinity)
                return;
This page took 0.02336 seconds and 4 git commands to generate.