From: Bert Hubert Date: Sun, 15 Aug 2010 08:41:23 +0000 (+0000) Subject: silence warnings, enable separate compilation X-Git-Tag: rec-3.3~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b00cab1d70ca152f26f4608fa08ba074db32b761;p=pdns silence warnings, enable separate compilation git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1689 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/speedtest.cc b/pdns/speedtest.cc index 3d415b80d..20294569d 100644 --- a/pdns/speedtest.cc +++ b/pdns/speedtest.cc @@ -4,11 +4,13 @@ #include "dnswriter.hh" #include "dnsrecords.hh" #include +#include "config.h" #ifndef RECURSOR #include "statbag.hh" StatBag S; #endif +volatile bool g_ret; // make sure the optimizer does not get too smart uint64_t g_totalRuns; volatile bool g_stop; @@ -674,7 +676,7 @@ struct IEqualsTest void operator()() const { static string a("www.ds9a.nl"), b("www.lwn.net"); - bool ret = boost::iequals(a, b); + g_ret = boost::iequals(a, b); } }; @@ -689,7 +691,7 @@ struct MyIEqualsTest void operator()() const { static string a("www.ds9a.nl"), b("www.lwn.net"); - bool ret = pdns_iequals(a, b); + g_ret = pdns_iequals(a, b); } }; @@ -705,7 +707,7 @@ struct StrcasecmpTest void operator()() const { static string a("www.ds9a.nl"), b("www.lwn.net"); - bool ret = strcasecmp(a.c_str(), b.c_str()); + g_ret = strcasecmp(a.c_str(), b.c_str()); } };