Changeset 1689

Show
Ignore:
Timestamp:
08/15/10 10:41:23 (3 years ago)
Author:
ahu
Message:

silence warnings, enable separate compilation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/speedtest.cc

    r1680 r1689  
    55#include "dnsrecords.hh" 
    66#include <boost/format.hpp> 
     7#include "config.h" 
    78#ifndef RECURSOR 
    89#include "statbag.hh" 
     
    1011#endif 
    1112 
     13volatile bool g_ret; // make sure the optimizer does not get too smart 
    1214uint64_t g_totalRuns; 
    1315 
     
    675677  { 
    676678      static string a("www.ds9a.nl"), b("www.lwn.net"); 
    677       bool ret = boost::iequals(a, b); 
     679      g_ret = boost::iequals(a, b); 
    678680  } 
    679681 
     
    690692  { 
    691693      static string a("www.ds9a.nl"), b("www.lwn.net"); 
    692       bool ret = pdns_iequals(a, b); 
     694      g_ret = pdns_iequals(a, b); 
    693695  } 
    694696 
     
    706708  { 
    707709      static string a("www.ds9a.nl"), b("www.lwn.net"); 
    708       bool ret = strcasecmp(a.c_str(), b.c_str()); 
     710      g_ret = strcasecmp(a.c_str(), b.c_str()); 
    709711  } 
    710712};