You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2022/07/20 13:19:00 UTC

[jira] [Created] (ARROW-17145) [C++] Compilation warnings on gcc in release mode

Antoine Pitrou created ARROW-17145:
--------------------------------------

             Summary: [C++] Compilation warnings on gcc in release mode
                 Key: ARROW-17145
                 URL: https://issues.apache.org/jira/browse/ARROW-17145
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
            Reporter: Antoine Pitrou


With gcc 10.3 I get this warning in release mode.

{code}
[168/321] Building CXX object src/arrow/CMakeFiles/arrow_testing_objlib.dir/compute/exec/test_util.cc.o
In file included from /home/antoine/arrow/dev/cpp/src/arrow/compute/exec/test_util.h:28,
                 from /home/antoine/arrow/dev/cpp/src/arrow/compute/exec/test_util.cc:18:
/home/antoine/arrow/dev/cpp/src/arrow/compute/exec.h: In member function 'R arrow::internal::FnOnce<R(A ...)>::FnImpl<Fn>::invoke(A&& ...) [with Fn = arrow::Future<>::WrapResultyOnComplete::Callback<arrow::Future<>::ThenOnComplete<arrow::compute::StartAndCollect(arrow::compute::ExecPlan*, arrow::AsyncGenerator<nonstd::optional_lite::optional<arrow::compute::ExecBatch> >)::<lambda()>, arrow::Future<>::PassthruOnFailure<arrow::compute::StartAndCollect(arrow::compute::ExecPlan*, arrow::AsyncGenerator<nonstd::optional_lite::optional<arrow::compute::ExecBatch> >)::<lambda()> > > >; R = void; A = {const arrow::FutureImpl&}]':
/home/antoine/arrow/dev/cpp/src/arrow/compute/exec.h:177:21: warning: '*((void*)(&<anonymous>)+8).arrow::compute::ExecBatch::length' may be used uninitialized in this function [-Wmaybe-uninitialized]
  177 | struct ARROW_EXPORT ExecBatch {
      |                     ^~~~~~~~~
{code}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)