htable/htable_type: avoid warning about an unused argument
authorCody P Schafer <dev@codyps.com>
Tue, 31 May 2016 16:05:33 +0000 (12:05 -0400)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 31 May 2016 21:08:56 +0000 (06:38 +0930)
Signed-off-by: Cody P Schafer <dev@codyps.com>
ccan/htable/htable_type.h

index 2afa1484756025c21ee122dcd31dbc59623fab24..61535c2c665c43fa611f5b995205e9fccd94f648 100644 (file)
@@ -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)        \