Skip to content

Commit

Permalink
Suppress warnings from "scan-build"
Browse files Browse the repository at this point in the history
  • Loading branch information
vacantron committed Dec 2, 2024
1 parent a679df2 commit 65a28d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,15 @@ static inline int hlist_empty(const struct hlist_head *h)

static inline void hlist_add_head(struct hlist_node *n, struct hlist_head *h)
{
#ifndef __clang_analyzer__
struct hlist_node *first = h->first;
n->next = first;
if (first)
first->pprev = &n->next;

h->first = n;
n->pprev = &h->first;
#endif
}

static inline bool hlist_unhashed(const struct hlist_node *h)
Expand Down

0 comments on commit 65a28d9

Please sign in to comment.