Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Oct 2021 18:41:37 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 993446638ce7 - main - alq_open_flags(): mark local td variable as unused
Message-ID:  <202110211841.19LIfbev010375@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110211841.19LIfbev010375>