git: 3d2778515aa4 - main - sig_ast_checksusp(): mark the local p as __diagused

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Thu, 21 Oct 2021 18:41:40 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=3d2778515aa4748f5d561a282d44c7a8c8acfe35

commit 3d2778515aa4748f5d561a282d44c7a8c8acfe35
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-10-21 17:43:32 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-10-21 18:40:46 +0000

    sig_ast_checksusp(): mark the local p as __diagused
    
    It is only used to assert that the (current) process is locked
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
---
 sys/kern/kern_sig.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index d6826e8dc507..15d509eca52d 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -3262,7 +3262,7 @@ postsig(int sig)
 int
 sig_ast_checksusp(struct thread *td)
 {
-	struct proc *p;
+	struct proc *p __diagused;
 	int ret;
 
 	p = td->td_proc;