Avoid warning about set but not used variable.

This commit is contained in:
levlam 2022-07-06 21:53:50 +03:00
parent 76080dfb1c
commit 81cb929b37

View File

@ -260,6 +260,7 @@ class QueryBench final : public td::Benchmark {
} else if (type == 4) { } else if (type == 4) {
int val = 0; int val = 0;
send_lambda(client_, [&] { val = n_ * n_; }); send_lambda(client_, [&] { val = n_ * n_; });
CHECK(val == n_ * n_);
} else if (type == 5) { } else if (type == 5) {
send_closure(client_, &ClientActor::f_promise, send_closure(client_, &ClientActor::f_promise,
td::PromiseCreator::lambda([actor_id = actor_id(this), n = n_](td::Unit) { td::PromiseCreator::lambda([actor_id = actor_id(this), n = n_](td::Unit) {