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

[C++] warnings building on mingw-w64

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.15.1
    • Fix Version/s: 1.0.0
    • Component/s: C++
    • Labels:
      None

      Description

      Two warnings when building libarrow 0.15.1 on mingw-w64:

      [  2%] Running thrift compiler on parquet.thrift
      [WARNING:C:/msys64/home/mingw-packages/mingw-w64-arrow/src/apache-arrow-0.15.1/cpp/src/parquet/parquet.thrift:297] The "byte" type is a compatibility alias for "i8". Use "i8" to emphasize the signedness of this type.
      

      And later:

       81%] Building CXX object src/parquet/CMakeFiles/parquet_static.dir/column_reader.cc.obj
      C:/msys64/home/mingw-packages/mingw-w64-arrow/src/apache-arrow-0.15.1/cpp/src/parquet/arrow/writer.cc: In member function 'virtual arrow::Status parquet::arrow::FileWriterImpl::WriteColumnChunk(const std::shared_ptr<arrow::ChunkedArray>&, int64_t, int64_t)':
      C:/msys64/home/mingw-packages/mingw-w64-arrow/src/apache-arrow-0.15.1/cpp/src/parquet/arrow/writer.cc:79:41: warning: 'schema_field' may be used uninitialized in this function [-Wmaybe-uninitialized]
               schema_manifest_(schema_manifest) {}
                                               ^
      C:/msys64/home/mingw-packages/mingw-w64-arrow/src/apache-arrow-0.15.1/cpp/src/parquet/arrow/writer.cc:466:24: note: 'schema_field' was declared here
           const SchemaField* schema_field;
      

      Maybe CI with `CXXFLAGS += -Werror` ?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jeroenooms Jeroen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: