Skip to content

Commit

Permalink
ARROW-12475: [C++] Fix 'warn_unused_result' warning
Browse files Browse the repository at this point in the history
Closes #10107 from cyb70289/12475-clang-warning

Authored-by: Yibo Cai <[email protected]>
Signed-off-by: David Li <[email protected]>
  • Loading branch information
cyb70289 authored and lidavidm committed Apr 20, 2021
1 parent 32e0778 commit 930c381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/util/thread_pool_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ static void RunInSerialExecutor(benchmark::State& state) { // NOLINT non-const
Workload workload(workload_size);

for (auto _ : state) {
SerialExecutor::RunInSerialExecutor<arrow::detail::Empty>(
ABORT_NOT_OK(SerialExecutor::RunInSerialExecutor<arrow::detail::Empty>(
[&](internal::Executor* executor) {
return DeferNotOk(executor->Submit(std::ref(workload)));
});
}));
}

state.SetItemsProcessed(state.iterations());
Expand Down

0 comments on commit 930c381

Please sign in to comment.