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:
Konstantin Belousov 2018-07-05 13:37:31 +00:00
parent f38b68ae8a
commit dbadb01591

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