mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-03 12:58:05 +01: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:
parent
14054d28ed
commit
de46fc6ac9
@ -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_)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user