mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-13 06:44:16 +02:00
Problem: can't do anything with load.sub ret val
Solution: don't store it in zmq::poller_base_t::adjust_load, as the build with Werror=unused=variable will fail otherwise.
This commit is contained in:
@@ -53,7 +53,7 @@ void zmq::poller_base_t::adjust_load (int amount_)
|
|||||||
load.add (amount_);
|
load.add (amount_);
|
||||||
else
|
else
|
||||||
if (amount_ < 0)
|
if (amount_ < 0)
|
||||||
bool reset = load.sub (-amount_);
|
load.sub (-amount_);
|
||||||
}
|
}
|
||||||
|
|
||||||
void zmq::poller_base_t::add_timer (int timeout_, i_poll_events *sink_, int id_)
|
void zmq::poller_base_t::add_timer (int timeout_, i_poll_events *sink_, int id_)
|
||||||
|
Reference in New Issue
Block a user