mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
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.
This commit is contained in:
parent
a7cafb1ea9
commit
9b10d7a7dd
@ -160,7 +160,7 @@ ht_string_hash(const char *s)
|
|||||||
} \
|
} \
|
||||||
/* Return a pointer to the element in the table 'head' matching 'elm', \
|
/* Return a pointer to the element in the table 'head' matching 'elm', \
|
||||||
* or NULL if no such element exists */ \
|
* 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) \
|
name##_HT_FIND(const struct name *head, struct type *elm) \
|
||||||
{ \
|
{ \
|
||||||
struct type **p; \
|
struct type **p; \
|
||||||
|
Loading…
Reference in New Issue
Block a user