git: 993446638ce7 - main - alq_open_flags(): mark local td variable as unused
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Oct 2021 18:41:37 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=993446638ce701109d29c520b85d7ca31b5c5fe8 commit 993446638ce701109d29c520b85d7ca31b5c5fe8 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2021-10-21 17:39:15 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2021-10-21 18:40:46 +0000 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(-) 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;