From: Nick Mathewson Date: Sat, 14 Jun 2014 15:46:54 +0000 (-0400) Subject: Add ATTR_UNUSED to HT_FIND X-Git-Tag: tor-0.2.5.5-alpha~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b10d7a7dd822af0584474285d00c8228fbdbb82;p=thirdparty%2Ftor.git Add ATTR_UNUSED to HT_FIND The fix for bug 8746 added a hashtable instance that never actually invoked HT_FIND. This caused a warning, since we didn't mark HT_FIND as okay-not-to-use. --- diff --git a/src/ext/ht.h b/src/ext/ht.h index 871f5bbd2d..838710784f 100644 --- a/src/ext/ht.h +++ b/src/ext/ht.h @@ -160,7 +160,7 @@ ht_string_hash(const char *s) } \ /* Return a pointer to the element in the table 'head' matching 'elm', \ * or NULL if no such element exists */ \ - static INLINE struct type * \ + ATTR_UNUSED static INLINE struct type * \ name##_HT_FIND(const struct name *head, struct type *elm) \ { \ struct type **p; \