From b25651a46a97fb6e50ee48d19701b4f778fc1004 Mon Sep 17 00:00:00 2001 From: Matt Macy Date: Sat, 19 May 2018 04:47:34 +0000 Subject: [PATCH] epoch: avoid warning when INVARIANTS is not enabled --- sys/sys/epoch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/epoch.h b/sys/sys/epoch.h index e272a80bed8f..e1bf269c2865 100644 --- a/sys/sys/epoch.h +++ b/sys/sys/epoch.h @@ -63,7 +63,7 @@ static __inline void epoch_enter_preempt(epoch_t epoch) { struct thread *td; - int nesting; + int nesting __unused; td = curthread; nesting = td->td_epochnest++;