commit 9b10d7a7dd822af0584474285d00c8228fbdbb82 Author: Nick Mathewson nickm@torproject.org Date: Sat Jun 14 11:46:54 2014 -0400
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. --- src/ext/ht.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ext/ht.h b/src/ext/ht.h index 871f5bb..8387107 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; \
tor-commits@lists.torproject.org