From 15966998bbeaea92e4e1b1c9f067a4142f51f680 Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Tue, 31 May 2016 12:05:33 -0400 Subject: [PATCH] htable/htable_type: avoid warning about an unused argument Signed-off-by: Cody P Schafer --- ccan/htable/htable_type.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ccan/htable/htable_type.h b/ccan/htable/htable_type.h index 2afa1484..61535c2c 100644 --- a/ccan/htable/htable_type.h +++ b/ccan/htable/htable_type.h @@ -55,6 +55,7 @@ struct name##_iter { struct htable_iter i; }; \ static inline size_t name##_hash(const void *elem, void *priv) \ { \ + (void)priv; \ return hashfn(keyof((const type *)elem)); \ } \ static inline UNNEEDED void name##_init(struct name *ht) \ -- 2.39.2