From: Michael Jeanson Date: Thu, 20 Jul 2017 21:33:45 +0000 (-0400) Subject: Tests fix: unused variable warnings X-Git-Tag: v0.9.5~5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=456f759d835036cd316c567ac0edf463ae1fe6b8;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;