]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add ATTR_UNUSED to HT_FIND
authorNick Mathewson <nickm@torproject.org>
Sat, 14 Jun 2014 15:46:54 +0000 (11:46 -0400)
committerNick Mathewson <nickm@torproject.org>
Sat, 14 Jun 2014 15:46:54 +0000 (11:46 -0400)
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

index 871f5bbd2d27e3ea6f945556b77155ae00215141..838710784f69928c677fa6cf7a25c0ad7290b1f7 100644 (file)
@@ -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;                                                    \