From 9b10d7a7dd822af0584474285d00c8228fbdbb82 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 14 Jun 2014 11:46:54 -0400 Subject: [PATCH] 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 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; \