From 993446638ce701109d29c520b85d7ca31b5c5fe8 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Thu, 21 Oct 2021 20:39:15 +0300 Subject: alq_open_flags(): mark local td variable as unused It is passed to the NDINIT() macro which ignores the thread argument for some time. Sponsored by: The FreeBSD Foundation --- sys/kern/kern_alq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern') diff --git a/sys/kern/kern_alq.c b/sys/kern/kern_alq.c index 6db4ab300828..4b30e519d335 100644 --- a/sys/kern/kern_alq.c +++ b/sys/kern/kern_alq.c @@ -431,7 +431,7 @@ int alq_open_flags(struct alq **alqp, const char *file, struct ucred *cred, int cmode, int size, int flags) { - struct thread *td; + struct thread *td __unused; struct nameidata nd; struct alq *alq; int oflags; -- cgit v1.2.3