Yibo Cai created ARROW-12475:
--------------------------------

             Summary: [C++] Build warning from thread_pool_benchmark.cc
                 Key: ARROW-12475
                 URL: https://issues.apache.org/jira/browse/ARROW-12475
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
            Reporter: Yibo Cai


Clang warning from 
https://github.com/apache/arrow/blob/master/cpp/src/arrow/util/thread_pool_benchmark.cc#L113,
 as the return value of type 'Result' is not used.
Wrap it with ABORT_NOT_OK() fixes the issue.

{code:bash}
[43/236] Building CXX object 
src/arrow/util/CMakeFiles/arrow-thread-pool-benchmark.dir/thread_pool_benchmark.cc.o
../src/arrow/util/thread_pool_benchmark.cc:113:5: warning: ignoring return 
value of function declared with 'warn_unused_result' attribute [-Wunused-result]
    SerialExecutor::RunInSerialExecutor<arrow::detail::Empty>(
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to