You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Yibo Cai (Jira)" <ji...@apache.org> on 2021/04/20 06:24:00 UTC
[jira] [Commented] (ARROW-12475) [C++] Build warning from
thread_pool_benchmark.cc
[ https://issues.apache.org/jira/browse/ARROW-12475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17325505#comment-17325505 ]
Yibo Cai commented on ARROW-12475:
----------------------------------
cc [~westonpace]
> [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
> Priority: Minor
>
> 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)