From 0d990f57aefcb3a2e82a91367fc600ccf69eea63 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 30 Sep 2015 14:04:28 +1000 Subject: [PATCH] silence compiler warnings --- bin/tests/system/dyndb/driver/db.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/tests/system/dyndb/driver/db.c b/bin/tests/system/dyndb/driver/db.c index d9d4dd8121..6799d3b2e2 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);