You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/04/20 06:58:00 UTC
[jira] [Updated] (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:all-tabpanel ]
ASF GitHub Bot updated ARROW-12475:
-----------------------------------
Labels: pull-request-available (was: )
> [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
> Assignee: Yibo Cai
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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)