Browse Source

htable/htable_type: avoid warning about an unused argument

Signed-off-by: Cody P Schafer <dev@codyps.com>
Cody P Schafer 9 years ago
parent
commit
15966998bb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      ccan/htable/htable_type.h

+ 1 - 0
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)	\