aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-06-14 11:46:54 -0400
committerNick Mathewson <nickm@torproject.org>2014-06-14 11:46:54 -0400
commit9b10d7a7dd822af0584474285d00c8228fbdbb82 (patch)
treed306866cf1f4d69844337f8e64ac853ff31eb54b
parenta7cafb1ea9307864c94ad3e019af93d09d48350e (diff)
downloadtor-9b10d7a7dd822af0584474285d00c8228fbdbb82.tar
tor-9b10d7a7dd822af0584474285d00c8228fbdbb82.tar.gz
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.
-rw-r--r--src/ext/ht.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ext/ht.h b/src/ext/ht.h
index 871f5bbd2..838710784 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; \