From: Cody P Schafer Date: Tue, 31 May 2016 16:05:33 +0000 (-0400) Subject: htable/htable_type: avoid warning about an unused argument X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=15966998bbeaea92e4e1b1c9f067a4142f51f680;hp=e22c782f26cb11593300478da853fa325ed2b99a htable/htable_type: avoid warning about an unused argument Signed-off-by: Cody P Schafer --- 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) \