Antoine Pitrou created ARROW-3110:
-------------------------------------

             Summary: [C++] Compilation warnings with gcc 7.3.0
                 Key: ARROW-3110
                 URL: https://issues.apache.org/jira/browse/ARROW-3110
             Project: Apache Arrow
          Issue Type: Task
          Components: C++
    Affects Versions: 0.10.0
            Reporter: Antoine Pitrou
            Assignee: Antoine Pitrou


This is happening when building in release mode:
{code}
../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;
             ^~~~~~~~
{code}




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to