]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fixes 10799: 10800/head
authorOtto <otto.moerbeek@open-xchange.com>
Tue, 5 Oct 2021 11:50:12 +0000 (13:50 +0200)
committerOtto <otto.moerbeek@open-xchange.com>
Tue, 5 Oct 2021 17:59:29 +0000 (19:59 +0200)
test-rec-zonetocache.cc: In member function 'void rec_zonetocache::test_zonetocache::test_method()':
test-rec-zonetocache.cc:77:27: sorry, unimplemented: non-trivial designated initializers not supported
       .d_refreshPeriod = 0};
       ^
test-rec-zonetocache.cc:77:27: warning: missing initializer for member 'RecZoneToCache::Config::d_tt' [-Wmissing-field-initializers]

pdns/recursordist/test-rec-zonetocache.cc

index 461855b366ddba7a9ddcae6c67a955c060021c9b..d771674ada4df943e5c93bdad34667036207ac92 100644 (file)
@@ -69,12 +69,8 @@ BOOST_AUTO_TEST_CASE(test_zonetocache)
   BOOST_REQUIRE(written == zone.length());
   BOOST_REQUIRE(fclose(fp) == 0);
 
-  RecZoneToCache::Config config
-    = {
-      .d_zone = ".",
-      .d_method = "file",
-      .d_sources = {temp},
-      .d_refreshPeriod = 0};
+  RecZoneToCache::Config config{".", "file", {temp}, ComboAddress(), TSIGTriplet()};
+  config.d_refreshPeriod = 0;
 
   // Start with a new, empty cache
   g_recCache = std::unique_ptr<MemRecursorCache>(new MemRecursorCache());