mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-02 20:30:14 +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_);
|
||||
else
|
||||
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_)
|
||||
|
Loading…
x
Reference in New Issue
Block a user