diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-06-14 11:46:54 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-06-14 11:46:54 -0400 |
commit | 9b10d7a7dd822af0584474285d00c8228fbdbb82 (patch) | |
tree | d306866cf1f4d69844337f8e64ac853ff31eb54b /src/ext | |
parent | a7cafb1ea9307864c94ad3e019af93d09d48350e (diff) | |
download | tor-9b10d7a7dd822af0584474285d00c8228fbdbb82.tar.gz tor-9b10d7a7dd822af0584474285d00c8228fbdbb82.zip |
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.
Diffstat (limited to 'src/ext')
-rw-r--r-- | src/ext/ht.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; \ |