[ccan] [PATCH] list: suppress unused argument warnings

Cody P Schafer dev at codyps.com
Mon Aug 17 08:33:48 AEST 2015


Signed-off-by: Cody P Schafer <dev at codyps.com>
---
 ccan/list/list.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ccan/list/list.h b/ccan/list/list.h
index 118d9cf..0e4bd44 100644
--- a/ccan/list/list.h
+++ b/ccan/list/list.h
@@ -95,8 +95,8 @@ struct list_node *list_check_node(const struct list_node *n,
 #define list_debug(h, loc) list_check((h), loc)
 #define list_debug_node(n, loc) list_check_node((n), loc)
 #else
-#define list_debug(h, loc) (h)
-#define list_debug_node(n, loc) (n)
+#define list_debug(h, loc) ((void)loc, h)
+#define list_debug_node(n, loc) ((void)loc, n)
 #endif
 
 /**
-- 
2.5.0



More information about the ccan mailing list