summaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/thread.h')
-rw-r--r--kern/thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/thread.h b/kern/thread.h
index 29c2dfe5..af8539d2 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -283,7 +283,7 @@ void thread_pi_setscheduler(struct thread *thread, unsigned char policy,
static inline void
thread_ref(struct thread *thread)
{
- __unused unsigned long nr_refs;
+ unsigned long nr_refs;
nr_refs = atomic_fetch_add(&thread->nr_refs, 1, ATOMIC_RELAXED);
assert(nr_refs != (unsigned long)-1);