From cd54ec62492aa3f01c68910e5c942388d21c7379 Mon Sep 17 00:00:00 2001 From: Ben Craig Date: Thu, 29 Aug 2013 10:45:21 -0500 Subject: [PATCH] THRIFT-1999: warning on gcc 4.7 while compiling BoostMutex.cpp Client: cpp Patch: Konrad Grochowski --- lib/cpp/src/thrift/concurrency/BoostMutex.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/cpp/src/thrift/concurrency/BoostMutex.cpp b/lib/cpp/src/thrift/concurrency/BoostMutex.cpp index eb0c3c12..59c36185 100644 --- a/lib/cpp/src/thrift/concurrency/BoostMutex.cpp +++ b/lib/cpp/src/thrift/concurrency/BoostMutex.cpp @@ -21,6 +21,7 @@ #include #include +#include #include #include @@ -37,7 +38,8 @@ namespace apache { namespace thrift { namespace concurrency { class Mutex::impl : public boost::timed_mutex { }; -Mutex::Mutex(Initializer init) : impl_(new Mutex::impl()) {} +Mutex::Mutex(Initializer init) : impl_(new Mutex::impl()) +{ THRIFT_UNUSED_VARIABLE(init); } void* Mutex::getUnderlyingImpl() const { return impl_.get(); } @@ -50,7 +52,7 @@ bool Mutex::timedlock(int64_t ms) const { return impl_->timed_lock(boost::get_sy void Mutex::unlock() const { impl_->unlock(); } void Mutex::DEFAULT_INITIALIZER(void* arg) { + THRIFT_UNUSED_VARIABLE(arg); } }}} // apache::thrift::concurrency - -- 2.17.1