git: de709b1455fb - main - sx: whack set-but-not-used warn in _sx_slock_hard

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Tue, 21 Feb 2023 13:50:36 UTC
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;