]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
silence an unused variable warning 3897/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 25 May 2016 11:41:10 +0000 (13:41 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 25 May 2016 11:41:10 +0000 (13:41 +0200)
pdns/logger.cc

index 4d1d3708b9d702cca70d9f71c91a447540b5f9db..600b7abf3407bc89e07732b5f7d31311f67795ed 100644 (file)
@@ -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 <<endl;
+#ifndef RECURSOR
     mustAccount=true;
+#endif
   }
   if( u <= d_loglevel && !d_disableSyslog ) {
     syslog(u,"%s",msg.c_str());
+#ifndef RECURSOR
     mustAccount=true;
+#endif
   }
 
 #ifndef RECURSOR