Nate Clark created ARROW-12815: ---------------------------------- Summary: [C++] Warning when compiling on ubunut 21.04 Key: ARROW-12815 URL: https://issues.apache.org/jira/browse/ARROW-12815 Project: Apache Arrow Issue Type: Bug Components: C++ Affects Versions: 5.0.0 Reporter: Nate Clark
Warning generated when compiling using gcc 10.2 on ubuntu 21.04 {noformat} In file included from apache-arrow/cpp/src/arrow/chunked_array.h:26, from apache-arrow/cpp/src/arrow/table.h:25, from apache-arrow/cpp/src/arrow/table.cc:18, from src/arrow/CMakeFiles/arrow_objlib.dir/Unity/unity_4_cxx.cxx:4: apache-arrow/cpp/src/arrow/tensor.cc: In member function ‘arrow::Tensor::CountNonZero() const’: apache-arrow/cpp/src/arrow/result.h:446:5: warning: ‘MEM[(long int &)&counter + 8]’ may be used uninitialized in this function [-Wmaybe-uninitialized] 446 | new (&data_) T(std::forward<U>(u)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/arrow/CMakeFiles/arrow_objlib.dir/Unity/unity_4_cxx.cxx:6: apache-arrow/cpp/src/arrow/tensor.cc:337:18: note: ‘MEM[(long int &)&counter + 8]’ was declared here 337 | NonZeroCounter counter(*this); | ^~~~~~~ {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)