Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C++] Maybe uninitialized warnings #29244

Closed
asfimport opened this issue Aug 10, 2021 · 1 comment
Closed

[C++] Maybe uninitialized warnings #29244

asfimport opened this issue Aug 10, 2021 · 1 comment

Comments

@asfimport
Copy link
Collaborator

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];
      |                ^~~~
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);

Reporter: Keith Kraus / @kkraus14
Assignee: Keith Kraus / @kkraus14

PRs and other links:

Note: This issue was originally created as ARROW-13600. Please see the migration documentation for further details.

@asfimport
Copy link
Collaborator Author

Yibo Cai / @cyb70289:
Issue resolved by pull request 10907
#10907

@asfimport asfimport added this to the 6.0.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant