Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Feb 2023 13:50:36 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: de709b1455fb - main - sx: whack set-but-not-used warn in _sx_slock_hard
Message-ID:  <202302211350.31LDoaQ7002038@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg:

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

commit de709b1455fb464bdfab735c81a1f69bd1b9df91
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-02-21 13:49:14 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2023-02-21 13:49:14 +0000

    sx: whack set-but-not-used warn in _sx_slock_hard
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/kern/kern_sx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/kern_sx.c b/sys/kern/kern_sx.c
index ad1c1a0e8813..2b826fa91a26 100644
--- a/sys/kern/kern_sx.c
+++ b/sys/kern/kern_sx.c
@@ -1039,7 +1039,7 @@ _sx_slock_hard(struct sx *sx, int opts, uintptr_t x LOCK_FILE_LINE_ARG_DEF)
 #if defined(KDTRACE_HOOKS) || defined(LOCK_PROFILING)
 	uintptr_t state = 0;
 #endif
-	int extra_work = 0;
+	int extra_work __sdt_used = 0;
 
 	td = curthread;
 



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