X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fhtable%2Fhtable_type.h;fp=ccan%2Fhtable%2Fhtable_type.h;h=61535c2c665c43fa611f5b995205e9fccd94f648;hp=2afa1484756025c21ee122dcd31dbc59623fab24;hb=15966998bbeaea92e4e1b1c9f067a4142f51f680;hpb=e22c782f26cb11593300478da853fa325ed2b99a 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) \