Cleanup: fix cppcheck errors
[urcu.git] / tests / test_urcu_wfs.c
index 66710e2b688123a1b0ce5d672b55e3d6f7f33b04..4cf919699da4791688f1dc0e1b344f9a5061a824 100644 (file)
@@ -105,9 +105,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.022184 seconds and 4 git commands to generate.