Fix static linking: add missing static to thr_defer
[urcu.git] / tests / test_urcu_assign.c
index 31e22e511b96d5a61a45699a45225f35f3b6301a..68e84bd1f48273f365c9be49a1b35f0ba517a6d9 100644 (file)
@@ -84,9 +84,9 @@ static unsigned long rduration;
 /* write-side C.S. duration, in loops */
 static unsigned long wduration;
 
-static inline void loop_sleep(unsigned long l)
+static inline void loop_sleep(unsigned long loops)
 {
-       while(l-- != 0)
+       while (loops-- != 0)
                caa_cpu_relax();
 }
 
@@ -112,9 +112,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.023361 seconds and 4 git commands to generate.