[lttng-dev] [PATCH urcu 1/3] Tests fix: unused variable warnings
Michael Jeanson
mjeanson at efficios.com
Thu Jul 20 21:33:45 UTC 2017
Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
tests/benchmark/test_urcu_lfs_rcu.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
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;
--
2.7.4
More information about the lttng-dev
mailing list