mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-31 01:43:02 +08:00
Problem: unused variable warning in thread_start on !Linux
Solution: use LIBZMQ_UNUSED
This commit is contained in:
parent
f7ca7515d7
commit
c8d039a3c7
@ -54,6 +54,7 @@ static unsigned int __stdcall thread_routine (void *arg_)
|
|||||||
|
|
||||||
void zmq::thread_t::start (thread_fn *tfn_, void *arg_, const char *name_)
|
void zmq::thread_t::start (thread_fn *tfn_, void *arg_, const char *name_)
|
||||||
{
|
{
|
||||||
|
LIBZMQ_UNUSED (name_);
|
||||||
_tfn = tfn_;
|
_tfn = tfn_;
|
||||||
_arg = arg_;
|
_arg = arg_;
|
||||||
#if defined _WIN32_WCE
|
#if defined _WIN32_WCE
|
||||||
@ -111,6 +112,7 @@ static void *thread_routine (void *arg_)
|
|||||||
|
|
||||||
void zmq::thread_t::start (thread_fn *tfn_, void *arg_, const char *name_)
|
void zmq::thread_t::start (thread_fn *tfn_, void *arg_, const char *name_)
|
||||||
{
|
{
|
||||||
|
LIBZMQ_UNUSED (name_);
|
||||||
_tfn = tfn_;
|
_tfn = tfn_;
|
||||||
_arg = arg_;
|
_arg = arg_;
|
||||||
_descriptor = taskSpawn (NULL, DEFAULT_PRIORITY, DEFAULT_OPTIONS,
|
_descriptor = taskSpawn (NULL, DEFAULT_PRIORITY, DEFAULT_OPTIONS,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user