Neal Richardson created ARROW-8353:
--------------------------------------

             Summary: [C++] is_nullable maybe not initialized in parquet writer
                 Key: ARROW-8353
                 URL: https://issues.apache.org/jira/browse/ARROW-8353
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
            Reporter: Neal Richardson


>From the Rtools build:

{code}
[ 84%] Building CXX object 
src/parquet/CMakeFiles/parquet_static.dir/column_reader.cc.obj
In file included from D:/a/arrow/arrow/cpp/src/arrow/io/concurrency.h:23:0,
                 from D:/a/arrow/arrow/cpp/src/arrow/io/memory.h:25,
                 from D:/a/arrow/arrow/cpp/src/parquet/platform.h:25,
                 from D:/a/arrow/arrow/cpp/src/parquet/arrow/writer.h:23,
                 from D:/a/arrow/arrow/cpp/src/parquet/arrow/writer.cc:18:
D:/a/arrow/arrow/cpp/src/arrow/result.h: In member function 'virtual 
arrow::Status parquet::arrow::FileWriterImpl::WriteColumnChunk(const 
std::shared_ptr<arrow::ChunkedArray>&, int64_t, int64_t)':
D:/a/arrow/arrow/cpp/src/arrow/result.h:428:28: warning: 'is_nullable' may be 
used uninitialized in this function [-Wmaybe-uninitialized]
   auto result_name = (rexpr);                               \
                            ^
D:/a/arrow/arrow/cpp/src/parquet/arrow/writer.cc:430:10: note: 'is_nullable' 
was declared here
     bool is_nullable;
          ^
{code}

I'd give it a default value, but IDK that it's that simple.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to