From 29c2d86d66be16efaaf6c0196ff0723b82cc3b9d Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Wed, 25 May 2016 13:41:10 +0200 Subject: [PATCH] silence an unused variable warning --- pdns/logger.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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 <