Cleanup: fix cppcheck errors
[urcu.git] / tests / test_urcu_defer.c
index a711959a4ea19dbc19310f17d5450d54f6a96da4..1fbb15461be45d96fc9626634fb4afc030b66524 100644 (file)
@@ -113,9 +113,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.022618 seconds and 4 git commands to generate.