From: Ruben Kerkhof Date: Sat, 5 Jul 2014 12:16:22 +0000 (+0200) Subject: Fix a Clang warning on OSX X-Git-Tag: auth-3.4.0-rc1~75^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ce1b817f70b5776825eaa5c061d94d8824bce50;p=thirdparty%2Fpdns.git 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; ^ --- 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: