From a25c5a19d931871ad005f81b850f9a9882a01103 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sat, 9 Nov 2013 01:19:45 +0100 Subject: [PATCH] kernel: Mark two variables as being used by KKASSERT() only. Reported-by: Andrey Oktyabrskiy --- sys/kern/subr_unit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/subr_unit.c b/sys/kern/subr_unit.c index 1a9bdf4114..73ade3c016 100644 --- a/sys/kern/subr_unit.c +++ b/sys/kern/subr_unit.c @@ -488,8 +488,8 @@ alloc_unrl(struct unrhdr *uh) struct unrb *ub; u_int x; int y; - struct lock *ml = uh->lock; - struct thread *td = curthread; + struct lock *ml __debugvar = uh->lock; + struct thread *td __debugvar = curthread; KKASSERT(lockstatus(ml, td) != 0); check_unrhdr(uh, __LINE__); -- 2.41.0