]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence compiler warnings
authorMark Andrews <marka@isc.org>
Wed, 30 Sep 2015 04:04:28 +0000 (14:04 +1000)
committerMark Andrews <marka@isc.org>
Wed, 30 Sep 2015 04:04:28 +0000 (14:04 +1000)
bin/tests/system/dyndb/driver/db.c

index d9d4dd8121dc89defb59ab3545fe2aa6eee6fb9b..6799d3b2e298bd9f54468739ec40937101d7e81b 100644 (file)
@@ -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);