From e946b0d1a687119c27e8c244f408b0760b67eb6f Mon Sep 17 00:00:00 2001 From: hitstergtd Date: Tue, 10 May 2016 18:54:05 +0100 Subject: [PATCH] Problem: scheduling parameters unused on OSX Solution: Mark them with LIBZMQ_UNUSED macro as per convention; although in future the appropriate pthread code should be updated to support thread scheduling priorities (for Mac OS X, et. al.) --- src/thread.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/thread.cpp b/src/thread.cpp index 09965d0b..58b0581a 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -28,6 +28,7 @@ */ #include "precompiled.hpp" +#include "macros.hpp" #include "thread.hpp" #include "err.hpp" #include "platform.hpp" @@ -73,6 +74,8 @@ void zmq::thread_t::stop () void zmq::thread_t::setSchedulingParameters(int priority_, int schedulingPolicy_) { // not implemented + LIBZMQ_UNUSED (priority_); + LIBZMQ_UNUSED (schedulingPolicy_); } #else @@ -144,12 +147,11 @@ void zmq::thread_t::setSchedulingParameters(int priority_, int schedulingPolicy_ rc = pthread_setschedparam(descriptor, policy, ¶m); posix_assert (rc); +#else + + LIBZMQ_UNUSED (priority_); + LIBZMQ_UNUSED (schedulingPolicy_); #endif } #endif - - - - -