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:
parent
6615ed4c61
commit
bf21f0b257
@ -3988,8 +3988,10 @@ prison_racct_attach(struct prison *pr)
|
|||||||
static void
|
static void
|
||||||
prison_racct_modify(struct prison *pr)
|
prison_racct_modify(struct prison *pr)
|
||||||
{
|
{
|
||||||
|
#ifdef RCTL
|
||||||
struct proc *p;
|
struct proc *p;
|
||||||
struct ucred *cred;
|
struct ucred *cred;
|
||||||
|
#endif
|
||||||
struct prison_racct *oldprr;
|
struct prison_racct *oldprr;
|
||||||
|
|
||||||
ASSERT_RACCT_ENABLED();
|
ASSERT_RACCT_ENABLED();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user