From b55338e4476f8eff44fa0b6693609e078586b95a Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Tue, 7 Aug 2018 20:11:46 -0700 Subject: [PATCH] Silence a compiler warning on openbsd and fix windows build --- lib/dns/rdataset.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/dns/rdataset.c b/lib/dns/rdataset.c index 448e12aa3b..c1bbbc2152 100644 --- a/lib/dns/rdataset.c +++ b/lib/dns/rdataset.c @@ -400,6 +400,9 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name, } if ((shuffle || sort)) { + isc_uint32_t seed = 0; + unsigned int j; + /* * First we get handles to all of the rdata. */ @@ -416,8 +419,6 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name, } INSIST(i == count); - unsigned int j; - isc_uint32_t seed; if (ISC_LIKELY(want_random)) { seed = isc_random32(); j = 0;