From dc7d490b6ac24718ce65e03f5bb93c0ad8e90ad9 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Mon, 16 Feb 2015 13:22:15 +0100 Subject: [PATCH] move statbag so static initialisation happens early enough for packetcache; thanks @cmouse for pointers --- pdns/test-nameserver_cc.cc | 1 - pdns/testrunner.cc | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/test-nameserver_cc.cc b/pdns/test-nameserver_cc.cc index e24065e70..8417b5532 100644 --- a/pdns/test-nameserver_cc.cc +++ b/pdns/test-nameserver_cc.cc @@ -9,7 +9,6 @@ #include extern vector g_localaddresses; -StatBag S; ArgvMap &arg() { diff --git a/pdns/testrunner.cc b/pdns/testrunner.cc index f27a6c3d1..15a9d43aa 100644 --- a/pdns/testrunner.cc +++ b/pdns/testrunner.cc @@ -3,6 +3,7 @@ #define BOOST_TEST_MODULE unit #include "packetcache.hh" +StatBag S; PacketCache PC; #include -- 2.40.0