From c1f26bd63cbd3ed0b068d07d994e23bb85ebfd8d Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 26 Mar 2014 16:20:31 +1100 Subject: [PATCH] silence clang compiler warnings --- lib/dns/zone.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 88f359cfa1..f0b66cb128 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -4837,6 +4837,21 @@ zone_get_from_db(dns_zone_t *zone, dns_db_t *db, unsigned int *nscount, dns_db_currentversion(db, &version); + if (nscount != NULL) + *nscount = 0; + if (soacount != NULL) + *soacount = 0; + if (serial != NULL) + *serial = 0; + if (refresh != NULL) + *refresh = 0; + if (retry != NULL) + *retry = 0; + if (expire != NULL) + *expire = 0; + if (errors != NULL) + *errors = 0; + node = NULL; result = dns_db_findnode(db, &zone->origin, ISC_FALSE, &node); if (result != ISC_R_SUCCESS) { @@ -14014,7 +14029,6 @@ zone_replacedb(dns_zone_t *zone, dns_db_t *db, isc_boolean_t dump) { !DNS_ZONE_FLAG(zone, DNS_ZONEFLG_FORCEXFER)) { isc_uint32_t serial, oldserial; - unsigned int soacount; dns_zone_log(zone, ISC_LOG_DEBUG(3), "generating diffs");