From: Pieter Lexis Date: Wed, 25 May 2016 11:41:10 +0000 (+0200) Subject: silence an unused variable warning X-Git-Tag: auth-4.0.0-beta1~5^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3897%2Fhead;p=thirdparty%2Fpdns.git silence an unused variable warning --- diff --git a/pdns/logger.cc b/pdns/logger.cc index 4d1d3708b9..600b7abf34 100644 --- a/pdns/logger.cc +++ b/pdns/logger.cc @@ -44,7 +44,9 @@ Logger &theL(const string &pname) void Logger::log(const string &msg, Urgency u) { +#ifndef RECURSOR bool mustAccount(false); +#endif struct tm tm; time_t t; time(&t); @@ -56,11 +58,15 @@ void Logger::log(const string &msg, Urgency u) static pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER; Lock l(&m); // the C++-2011 spec says we need this, and OSX actually does clog << string(buffer) + msg <