Cleanup: fix cppcheck errors
[urcu.git] / tests / test_urcu_wfcq.c
index 6c2e4e827707f80ce7af9a29a1480f7ee49c4fb3..3158d2d3d0a5fa89257edbd6722e3b8130ef778d 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.022593 seconds and 4 git commands to generate.