error is only used if MAC is defined, so make its declaration conditional
as well.
This commit is contained in:
parent
f28d52a6d9
commit
d8d2f47629
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280325
@ -596,7 +596,9 @@ shmget_existing(struct thread *td, struct shmget_args *uap, int mode,
|
||||
int segnum)
|
||||
{
|
||||
struct shmid_kernel *shmseg;
|
||||
#ifdef MAC
|
||||
int error;
|
||||
#endif
|
||||
|
||||
SYSVSHM_ASSERT_LOCKED();
|
||||
KASSERT(segnum >= 0 && segnum < shmalloced,
|
||||
|
Loading…
Reference in New Issue
Block a user