From: W.C.A. Wijngaards Date: Mon, 20 Apr 2026 10:24:28 +0000 (+0200) Subject: - Fix compile warnings for thread setname routine, and test compile. X-Git-Tag: release-1.25.0rc1~13 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=86a8be75f092c14caa26a6495802145fb9e5a2ca;p=thirdparty%2Funbound.git - Fix compile warnings for thread setname routine, and test compile. --- diff --git a/daemon/remote.c b/daemon/remote.c index 36c5a2a63..1eaf90016 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -6849,6 +6849,7 @@ static void* fast_reload_thread_main(void* arg) log_thread_set(&fast_reload_thread->threadnum); ub_thread_setname(fast_reload_thread->tid, name); + (void)name; /* When setname is not defined, ignore the name variable. */ verbose(VERB_ALGO, "start fast reload thread"); if(fast_reload_thread->fr_verb >= 1) { diff --git a/doc/Changelog b/doc/Changelog index 1c689ea63..1967f7ac5 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +20 April 2026: Wouter + - Fix compile warnings for thread setname routine, and test compile. + 17 April 2026: Wouter - Fix setup of ssl context copy of the tls service pem option, from a clang analyzer warning. diff --git a/testcode/checklocks.h b/testcode/checklocks.h index 7ebc2f984..d2c0a5336 100644 --- a/testcode/checklocks.h +++ b/testcode/checklocks.h @@ -360,6 +360,7 @@ typedef pthread_key_t ub_thread_key_type; #define ub_thread_key_create(key, f) LOCKRET(pthread_key_create(key, f)) #define ub_thread_key_set(key, v) LOCKRET(pthread_setspecific(key, v)) #define ub_thread_key_get(key) pthread_getspecific(key) +#define ub_thread_setname(thread, name) /* nop */ #endif /* USE_THREAD_DEBUG */ #endif /* TESTCODE_CHECK_LOCKS_H */