From: Mark Andrews Date: Wed, 30 Sep 2015 04:04:28 +0000 (+1000) Subject: silence compiler warnings X-Git-Tag: v9.11.0a1~407 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=0d990f57aefcb3a2e82a91367fc600ccf69eea63;p=thirdparty%2Fbind9.git silence compiler warnings --- diff --git a/bin/tests/system/dyndb/driver/db.c b/bin/tests/system/dyndb/driver/db.c index d9d4dd8121d..6799d3b2e29 100644 --- a/bin/tests/system/dyndb/driver/db.c +++ b/bin/tests/system/dyndb/driver/db.c @@ -756,7 +756,7 @@ create_db(isc_mem_t *mctx, dns_name_t *origin, dns_dbtype_t type, sampledb_t *sampledb = NULL; isc_result_t result; dns_dbversion_t *version = NULL; - struct in_addr a_addr = { 0x0100007f }; + struct in_addr a_addr; REQUIRE(type == dns_dbtype_zone); REQUIRE(rdclass == dns_rdataclass_in); @@ -767,6 +767,8 @@ create_db(isc_mem_t *mctx, dns_name_t *origin, dns_dbtype_t type, UNUSED(driverarg); /* no driver-specific configuration */ + a_addr.s_addr = 0x0100007fU; + CHECKED_MEM_GET_PTR(mctx, sampledb); ZERO_PTR(sampledb);