From bf21f0b257430cf81120ced05512835963b91ad5 Mon Sep 17 00:00:00 2001 From: kib Date: Thu, 5 Jul 2018 13:37:31 +0000 Subject: [PATCH] Silence warnings about unused variables when RACCT is defined but RCTL is not. Reported by: Dries Michiels Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/kern/kern_jail.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index b8bcbd494208..457a590cdf53 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -3988,8 +3988,10 @@ prison_racct_attach(struct prison *pr) static void prison_racct_modify(struct prison *pr) { +#ifdef RCTL struct proc *p; struct ucred *cred; +#endif struct prison_racct *oldprr; ASSERT_RACCT_ENABLED();