]> git.ozlabs.org Git - ccan/blobdiff - ccan/htable/htable_type.h
htable/htable_type: avoid warning about an unused argument
[ccan] / 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)        \