]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix unused variable warning when compiled without ssl.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 20 Apr 2026 10:24:55 +0000 (12:24 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 20 Apr 2026 10:24:55 +0000 (12:24 +0200)
doc/Changelog
util/net_help.c

index 1967f7ac5290f5377bb9425ca1bcba9e5358241f..66b2fdddb46dca3d2dd8100df2258728e7603d4b 100644 (file)
@@ -1,5 +1,6 @@
 20 April 2026: Wouter
        - Fix compile warnings for thread setname routine, and test compile.
+       - Fix unused variable warning when compiled without ssl.
 
 17 April 2026: Wouter
        - Fix setup of ssl context copy of the tls service pem option,
index fb38fdff8a843edbd0612b6f4466777600ea12a4..a0e23f5cd2de2489e5bacca95e6cf52106d64e6e 100644 (file)
@@ -1451,6 +1451,7 @@ void* listen_sslctx_create(const char* key, const char* pem,
        (void)key; (void)pem; (void)verifypem;
        (void)tls_ciphers; (void)tls_ciphersuites;
        (void)set_ticket_keys_cb; (void)is_dot; (void)is_doh;
+       (void)tls_protocols;
        return NULL;
 #endif /* HAVE_SSL */
 }
@@ -1864,7 +1865,7 @@ int listen_sslctx_setup_ticket_keys(struct config_strlist* tls_session_ticket_ke
        keys->key_name = NULL;
        return 1;
 #else
-       (void)tls_session_ticket_keys;
+       (void)tls_session_ticket_keys; (void)chroot;
        return 0;
 #endif
 }