Fix warning for real

This commit is contained in:
Marcus Holland-Moritz 2020-12-30 22:32:41 +01:00
parent 323fe7c5aa
commit ae1e5c8423

View File

@ -62,7 +62,7 @@ class basic_worker_group : public worker_group::impl, private Policy {
for (size_t i = 0; i < num_workers; ++i) {
workers_.emplace_back([=] {
folly::setThreadName(folly::to<std::string>(group_name, i + 1));
static_cast<void>(::nice(niceness));
[[maybe_unused]] auto rv = ::nice(niceness);
do_work();
});
}