Cleanup: fix cppcheck errors
[urcu.git] / tests / test_urcu_hash.c
index 5710de08135f8e0f58be45bfec59cca94636031e..f24566e1776fa2234079581a70a27dce058c72ad 100644 (file)
@@ -136,9 +136,10 @@ static pthread_mutex_t rcu_copy_mutex = PTHREAD_MUTEX_INITIALIZER;
 
 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.022595 seconds and 4 git commands to generate.