]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix compile warnings for thread setname routine, and test compile.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 20 Apr 2026 10:24:28 +0000 (12:24 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 20 Apr 2026 10:24:28 +0000 (12:24 +0200)
daemon/remote.c
doc/Changelog
testcode/checklocks.h

index 36c5a2a63752851d9c0e2a6e6240298fa50dd290..1eaf90016b88b862467bedc2ba13c16fa67382ff 100644 (file)
@@ -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) {
index 1c689ea6384a4320dfee6d68f505dc455eb0e0c8..1967f7ac5290f5377bb9425ca1bcba9e5358241f 100644 (file)
@@ -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.
index 7ebc2f98407e33bff16e7995ed5551e800165359..d2c0a533604b0d385f9daa43a0f4535cff08403d 100644 (file)
@@ -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 */