From: Michael Jeanson Date: Thu, 20 Jul 2017 21:33:45 +0000 (-0400) Subject: Tests fix: unused variable warnings X-Git-Tag: v0.8.11~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bf687a4fa23269a7fe8bfa4dbd30a5f3c501e1c3;p=userspace-rcu.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 5a44c97..4171220 100644 --- a/tests/benchmark/test_urcu_lfs_rcu.c +++ b/tests/benchmark/test_urcu_lfs_rcu.c @@ -85,9 +85,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;