Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit 2f9ad4a

Browse files
t-bbourtemb
authored andcommitted
ZmqEventConsumer: Add missing ZMQ_HAS_DISCONNECT check
Although we only call the function disconnect_socket if the define is true the compiler still sees the code.
1 parent 9c8837f commit 2f9ad4a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cppapi/client/zmqeventconsumer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3546,6 +3546,7 @@ ReceivedFromAdmin ZmqEventConsumer::initialize_received_from_admin(const Tango::
35463546
return result;
35473547
}
35483548

3549+
#ifdef ZMQ_HAS_DISCONNECT
35493550
void ZmqEventConsumer::disconnect_socket(zmq::socket_t& socket, const char* endpoint)
35503551
{
35513552
try
@@ -3561,6 +3562,11 @@ void ZmqEventConsumer::disconnect_socket(zmq::socket_t& socket, const char* endp
35613562
}
35623563
}
35633564
}
3565+
#else
3566+
void ZmqEventConsumer::disconnect_socket(zmq::socket_t& TANGO_UNUSED(socket), const char* TANGO_UNUSED(endpoint))
3567+
{
3568+
}
3569+
#endif
35643570

35653571
//--------------------------------------------------------------------------------------------------------------------
35663572
//

0 commit comments

Comments
 (0)