From a984a6dae03f11f94a3fb0f3641d56958753fc95 Mon Sep 17 00:00:00 2001 From: Gregory Burd Date: Tue, 13 Aug 2013 08:54:22 -0400 Subject: [PATCH] Adding a small patch to URCU build process. --- c_src/urcu-build.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 c_src/urcu-build.patch diff --git a/c_src/urcu-build.patch b/c_src/urcu-build.patch new file mode 100644 index 0000000..7bb69c0 --- /dev/null +++ b/c_src/urcu-build.patch @@ -0,0 +1,23 @@ +diff --git a/urcu/rculfhash.h b/urcu/rculfhash.h +index 23bd1ce..98e00b4 100644 +--- a/urcu/rculfhash.h ++++ b/urcu/rculfhash.h +@@ -31,6 +31,10 @@ + #include + #include + ++#ifndef UNUSED ++#define UNUSED(v) ((void)(v)) ++#endif ++ + #ifdef __cplusplus + extern "C" { + #endif +@@ -92,6 +96,7 @@ typedef int (*cds_lfht_match_fct)(struct cds_lfht_node *node, const void *key); + static inline + void cds_lfht_node_init(struct cds_lfht_node *node) + { ++ UNUSED(node); + } + + /*