Tests fix: unused variable warnings
[urcu.git] / tests / benchmark / test_urcu_lfs_rcu.c
index 5a44c97be42c08106ce2af4559dc2b206e7ac5c3..9e0bfad44a9adfb98376b0097b662bb2dc4cba49 100644 (file)
@@ -21,8 +21,6 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define _GNU_SOURCE
-#include "config.h"
 #include <stdio.h>
 #include <pthread.h>
 #include <stdlib.h>
@@ -85,9 +83,10 @@ pthread_mutex_t affinity_mutex = PTHREAD_MUTEX_INITIALIZER;
 
 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.022786 seconds and 4 git commands to generate.