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