Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-13600

[C++] Maybe uninitialized warnings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.0.0
    • C++

    Description

      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);
      

      Attachments

        Issue Links

          Activity

            People

              keith.j.kraus Keith Kraus
              keith.j.kraus Keith Kraus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6h
                  6h