]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
silence a few clang & gcc warnings, partially addressing #856
authorbert hubert <bert.hubert@netherlabs.nl>
Tue, 11 Jun 2013 15:30:22 +0000 (17:30 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Tue, 11 Jun 2013 15:30:22 +0000 (17:30 +0200)
pdns/dynlistener.cc
pdns/statbag.cc
pdns/utility.hh

index a8cb793d4fee789c5f5e99c769c22db42e7bda7d..32e526da1cdb56b40c30a509a87c98ae30fa4a60 100644 (file)
@@ -99,7 +99,6 @@ bool DynListener::testLive(const string& fname)
   strncpy(addr.sun_path, fname.c_str(), fname.length());
 
   int status = connect(fd, (struct sockaddr*)&addr, sizeof(addr));
-  int err=errno;
   close(fd);
   return status==0;
 }
index fbda4291a03d58e1ce2a907795a839aa032ffb0b..a5e55c73e7b08886bcd04aaece31bac2c5d61cb3 100644 (file)
@@ -200,7 +200,7 @@ void StatRing::resize(unsigned int newsize)
   int rpos;
   vector<string>newring;
   for(unsigned int i=startpos;i<d_pos;++i) {
-    rpos=i>=0 ? i : i+d_size;
+    rpos= i;
 
     newring.push_back(d_items[rpos%d_size]);
   }
index e16de52066296bbd8d432fd2195c6b0c2b9f2f06..d9463c5bf00abe5a312a5762513efe5b2b2ef6ce 100644 (file)
@@ -91,11 +91,6 @@ private:
 #else
   typedef int sem_value_t;
 
-  uint32_t       m_magic;
-  pthread_mutex_t m_lock;
-  pthread_cond_t  m_gtzero;
-  sem_value_t     m_count;
-  uint32_t       m_nwaiters;
 #endif
 
 protected: