Cleanup: fix cppcheck errors
[urcu.git] / tests / test_rwlock.c
index 1f267e677e48c4e586680ab0c8a8f7dffc11db7f..45dad7869427fc434a021f5bddc60f3f7590ea06 100644 (file)
@@ -114,9 +114,10 @@ typedef unsigned long cpu_set_t;
 
 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.023179 seconds and 4 git commands to generate.