Silence warnings about unused variables when RACCT is defined but RCTL

is not.

Reported by:	Dries Michiels <driesm.michiels@gmail.com>
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
This commit is contained in:
kib 2018-07-05 13:37:31 +00:00
parent 6615ed4c61
commit bf21f0b257

View File

@ -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();