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

[C++] Compilation warnings with gcc 7.3.0

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.11.0
    • C++

    Description

      This is happening when building in release mode:

      ../src/arrow/python/python_to_arrow.cc: In function 'arrow::Status arrow::py::detail::BuilderAppend(arrow::BinaryBuilder*, PyObject*, bool*)':
      ../src/arrow/python/python_to_arrow.cc:388:56: warning: 'length' may be used uninitialized in this function [-Wmaybe-uninitialized]
         if (ARROW_PREDICT_FALSE(builder->value_data_length() + length > kBinaryMemoryLimit)) {
                                                              ^
      ../src/arrow/python/python_to_arrow.cc:385:11: note: 'length' was declared here
         int32_t length;
                 ^~~~~~
      In file included from ../src/arrow/python/serialize.cc:32:0:
      ../src/arrow/builder.h: In member function 'arrow::Status arrow::py::SequenceBuilder::Update(int64_t, int8_t*)':
      ../src/arrow/builder.h:413:5: warning: 'offset32' may be used uninitialized in this function [-Wmaybe-uninitialized]
           raw_data_[length_++] = val;
           ^~~~~~~~~
      ../src/arrow/python/serialize.cc:90:13: note: 'offset32' was declared here
           int32_t offset32;
                   ^~~~~~~~
      

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 0.5h
                  0.5h