From: Michael Jeanson Date: Thu, 20 Jul 2017 21:33:45 +0000 (-0400) Subject: Tests fix: unused variable warnings X-Git-Tag: v0.11.0~55 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ed0d6f2b2cecb72d5b95fe48940263afb3b74368;p=urcu.git Tests fix: unused variable warnings Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/benchmark/test_urcu_lfs_rcu.c b/tests/benchmark/test_urcu_lfs_rcu.c index ce01143..9e0bfad 100644 --- a/tests/benchmark/test_urcu_lfs_rcu.c +++ b/tests/benchmark/test_urcu_lfs_rcu.c @@ -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;