You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Keith Kraus (Jira)" <ji...@apache.org> on 2021/08/10 22:07:00 UTC
[jira] [Created] (ARROW-13600) [C++] Maybe uninitialized warnings
Keith Kraus created ARROW-13600:
-----------------------------------
Summary: [C++] Maybe uninitialized warnings
Key: ARROW-13600
URL: https://issues.apache.org/jira/browse/ARROW-13600
Project: Apache Arrow
Issue Type: Bug
Components: C++
Reporter: Keith Kraus
Assignee: Keith Kraus
{code}
Building CXX object src/arrow/CMakeFiles/arrow_objlib.dir/compute/exec/key_hash.cc.o
/home/keith/git/arrow/cpp/src/arrow/compute/exec/key_hash.cc: In static member function 'static void arrow::compute::Hashing::hash_varlen_helper(uint32_t, const uint8_t*, uint32_t*)':
/home/keith/git/arrow/cpp/src/arrow/compute/exec/key_hash.cc:202:16: warning: 'last_stripe' may be used uninitialized in this function [-Wmaybe-uninitialized]
202 | uint32_t lane = reinterpret_cast<const uint32_t*>(last_stripe)[j];
| ^~~~
{code}
{code}
Building CXX object src/arrow/CMakeFiles/arrow_objlib.dir/tensor.cc.o
/home/keith/git/arrow/cpp/src/arrow/tensor.cc: In member function 'arrow::Result<long int> arrow::Tensor::CountNonZero() const':
/home/keith/git/arrow/cpp/src/arrow/tensor.cc:337:18: warning: '*((void*)& counter +8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
337 | NonZeroCounter counter(*this);
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)