From: Yorgos Thessalonikefs Date: Mon, 27 May 2024 12:56:52 +0000 (+0200) Subject: - Fix unused variable warning on compilation with no thread support. X-Git-Tag: release-1.21.0rc1~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5a2160ba37f417875b46ddd01019a7c7d0d8fd5;p=thirdparty%2Funbound.git - Fix unused variable warning on compilation with no thread support. --- diff --git a/doc/Changelog b/doc/Changelog index 5afab3eb6..c21e84277 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -3,6 +3,9 @@ cases. In the cases where limits are exceeded. - Fix spelling of tcp-idle-timeout docs, from Michael Tokarev. +27 May 2024: Yorgos + - Fix unused variable warning on compilation with no thread support. + 24 May 2024: Wouter - Fix #1064: Unbound 1.20 Cachedb broken? diff --git a/testcode/unitmain.c b/testcode/unitmain.c index b976ad97a..1ddc56750 100644 --- a/testcode/unitmain.c +++ b/testcode/unitmain.c @@ -1327,6 +1327,8 @@ static void localzone_parents_test(void) /* This is the config way */ z = lz_enter_zone(z1, zone_data[i], "always_nxdomain", LDNS_RR_CLASS_IN); + (void)z; /* please compiler when no threading and no lock + code; the following line disappears and z stays unused */ lock_rw_unlock(&z->lock); lz_init_parents(z1);