From: W.C.A. Wijngaards Date: Mon, 20 Apr 2026 10:24:55 +0000 (+0200) Subject: - Fix unused variable warning when compiled without ssl. X-Git-Tag: release-1.25.0rc1~12 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=eb2fe8df8d5784f39fb58047277b1d3b280f78ab;p=thirdparty%2Funbound.git - Fix unused variable warning when compiled without ssl. --- diff --git a/doc/Changelog b/doc/Changelog index 1967f7ac5..66b2fdddb 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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, diff --git a/util/net_help.c b/util/net_help.c index fb38fdff8..a0e23f5cd 100644 --- a/util/net_help.c +++ b/util/net_help.c @@ -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 }