From 2ce1b817f70b5776825eaa5c061d94d8824bce50 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 5 Jul 2014 14:16:22 +0200 Subject: [PATCH] Fix a Clang warning on OSX 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pdns/utility.hh b/pdns/utility.hh index 2e6997b497..870ee2f3d3 100644 --- a/pdns/utility.hh +++ b/pdns/utility.hh @@ -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: -- 2.47.2