0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-01 19:05:18 +08:00

Problem: unused variables warnings in get_peer_state

Solution: wrap arguments with LIBZMQ_UNUSED
This commit is contained in:
Luca Boccassi 2017-09-01 19:57:00 +01:00
parent 0382118371
commit 31089326fb

View File

@ -224,6 +224,9 @@ zmq::socket_base_t::socket_base_t (ctx_t *parent_, uint32_t tid_, int sid_, bool
int zmq::socket_base_t::get_peer_state (const void *identity,
size_t identity_size) const
{
LIBZMQ_UNUSED (identity);
LIBZMQ_UNUSED (identity_size);
// Only ROUTER sockets support this
errno = ENOTSUP;
return -1;