]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix unused variable warning on compilation with no thread support.
authorYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Mon, 27 May 2024 12:56:52 +0000 (14:56 +0200)
committerYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Mon, 27 May 2024 12:56:52 +0000 (14:56 +0200)
doc/Changelog
testcode/unitmain.c

index 5afab3eb68dd90cee681900db73ab94c326f25d0..c21e8427764edc11341ff660f4bb01388779d2fc 100644 (file)
@@ -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?
 
index b976ad97ad6bf997d07f67dc43021a51eba26a11..1ddc56750d93911f069fac1b926107eef7f940cf 100644 (file)
@@ -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);