]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix a Clang warning on OSX 1509/head
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Jul 2014 12:16:22 +0000 (14:16 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Jul 2014 12:16:22 +0000 (14:16 +0200)
In file included from unix_semaphore.cc:24:
./utility.hh:53:10: warning: private field 'm_pSemaphore' is not used
[-Wunused-private-field]
  sem_t *m_pSemaphore;
           ^

pdns/utility.hh

index 2e6997b497957d0aeff5346dc35934999fc8d37c..870ee2f3d36387210bf058ad1d0abf9a78bab7fa 100644 (file)
@@ -50,7 +50,6 @@ typedef unsigned long long uint64_t;
 class Semaphore
 {
 private:
-  sem_t *m_pSemaphore;
   typedef int sem_value_t;
 
 #if DARWIN || _AIX || __APPLE__
@@ -59,7 +58,9 @@ private:
   pthread_cond_t  m_gtzero;
   sem_value_t     m_count;
   uint32_t       m_nwaiters;
-#endif // DARWIN || _AIX || __APPLE__
+#else
+  sem_t *m_pSemaphore;
+#endif
 
 protected:
 public: