epoch: avoid warning when INVARIANTS is not enabled

This commit is contained in:
Matt Macy 2018-05-19 04:47:34 +00:00
parent e5ae3af78b
commit b25651a46a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333849

View File

@ -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++;