Deprecate wfqueue
[urcu.git] / tests / test_urcu_wfq.c
index 0116d5f6fd2edcc86eec781dbf40e5b19bcd44c0..d1760414f30378151a62d8c34656e9f09002d6fc 100644 (file)
@@ -65,6 +65,10 @@ static inline pid_t gettid(void)
 #ifndef DYNAMIC_LINK_TEST
 #define _LGPL_SOURCE
 #endif
+
+/* Remove deprecation warnings from test build. */
+#define CDS_WFQ_DEPRECATED
+
 #include <urcu.h>
 #include <urcu/wfqueue.h>
 
@@ -105,9 +109,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.023048 seconds and 4 git commands to generate.