]> git.lttng.org Git - urcu.git/commitdiff
Tests fix: unused variable warnings
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 20 Jul 2017 21:33:45 +0000 (17:33 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 21 Jul 2017 12:39:36 +0000 (08:39 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/benchmark/test_urcu_lfs_rcu.c

index 5a44c97be42c08106ce2af4559dc2b206e7ac5c3..417122046eccda2a29c716f71bdcc2685ca090b4 100644 (file)
@@ -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;
This page took 0.030772 seconds and 4 git commands to generate.