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

[Python] C linkage warnings in Clang with public Cython API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.6.0
    • Python
    • None

    Description

      /home/wesm/code/arrow/python/build/temp.linux-x86_64-3.5/lib.cxx:4327:60: warning: 'pyarrow_unwrap_buffer' has C-linkage specified, but returns user-defined type 'std::shared_ptr<arrow::Buffer>' which is incompatible with C [-Wreturn-type-c-linkage]
      __PYX_EXTERN_C DL_EXPORT(std::shared_ptr< arrow::Buffer> ) pyarrow_unwrap_buffer(PyObject *); /*proto*/
                                                                 ^
      /home/wesm/code/arrow/python/build/temp.linux-x86_64-3.5/lib.cxx:4329:62: warning: 'pyarrow_unwrap_data_type' has C-linkage specified, but returns user-defined type 'std::shared_ptr<arrow::DataType>' which is incompatible with C [-Wreturn-type-c-linkage]
      __PYX_EXTERN_C DL_EXPORT(std::shared_ptr< arrow::DataType> ) pyarrow_unwrap_data_type(PyObject *); /*proto*/
                                                                   ^
      /home/wesm/code/arrow/python/build/temp.linux-x86_64-3.5/lib.cxx:4331:59: warning: 'pyarrow_unwrap_field' has C-linkage specified, but returns user-defined type 'std::shared_ptr<arrow::Field>' which is incompatible with C [-Wreturn-type-c-linkage]
      __PYX_EXTERN_C DL_EXPORT(std::shared_ptr< arrow::Field> ) pyarrow_unwrap_field(PyObject *); /*proto*/
                                                                ^
      /home/wesm/code/arrow/python/build/temp.linux-x86_64-3.5/lib.cxx:4333:60: warning: 'pyarrow_unwrap_schema' has C-linkage specified, but returns user-defined type 'std::shared_ptr<arrow::Schema>' which is incompatible with C [-Wreturn-type-c-linkage]
      __PYX_EXTERN_C DL_EXPORT(std::shared_ptr< arrow::Schema> ) pyarrow_unwrap_schema(PyObject *); /*proto*/
                                                                 ^
      /home/wesm/code/arrow/python/build/temp.linux-x86_64-3.5/lib.cxx:4335:59: warning: 'pyarrow_unwrap_array' has C-linkage specified, but returns user-defined type 'std::shared_ptr<arrow::Array>' which is incompatible with C [-Wreturn-type-c-linkage]
      __PYX_EXTERN_C DL_EXPORT(std::shared_ptr< arrow::Array> ) pyarrow_unwrap_array(PyObject *); /*proto*/
                                                                ^
      /home/wesm/code/arrow/python/build/temp.linux-x86_64-3.5/lib.cxx:4338:60: warning: 'pyarrow_unwrap_tensor' has C-linkage specified, but returns user-defined type 'std::shared_ptr<arrow::Tensor>' which is incompatible with C [-Wreturn-type-c-linkage]
      __PYX_EXTERN_C DL_EXPORT(std::shared_ptr< arrow::Tensor> ) pyarrow_unwrap_tensor(PyObject *); /*proto*/
                                                                 ^
      /home/wesm/code/arrow/python/build/temp.linux-x86_64-3.5/lib.cxx:4340:60: warning: 'pyarrow_unwrap_column' has C-linkage specified, but returns user-defined type 'std::shared_ptr<arrow::Column>' which is incompatible with C [-Wreturn-type-c-linkage]
      __PYX_EXTERN_C DL_EXPORT(std::shared_ptr< arrow::Column> ) pyarrow_unwrap_column(PyObject *); /*proto*/
                                                                 ^
      /home/wesm/code/arrow/python/build/temp.linux-x86_64-3.5/lib.cxx:4342:59: warning: 'pyarrow_unwrap_table' has C-linkage specified, but returns user-defined type 'std::shared_ptr<arrow::Table>' which is incompatible with C [-Wreturn-type-c-linkage]
      __PYX_EXTERN_C DL_EXPORT(std::shared_ptr< arrow::Table> ) pyarrow_unwrap_table(PyObject *); /*proto*/
                                                                ^
      /home/wesm/code/arrow/python/build/temp.linux-x86_64-3.5/lib.cxx:4344:65: warning: 'pyarrow_unwrap_batch' has C-linkage specified, but returns user-defined type 'std::shared_ptr<arrow::RecordBatch>' which is incompatible with C [-Wreturn-type-c-linkage]
      __PYX_EXTERN_C DL_EXPORT(std::shared_ptr< arrow::RecordBatch> ) pyarrow_unwrap_batch(PyObject *); /*proto*/
      

      Attachments

        Activity

          People

            wesm Wes McKinney
            wesm Wes McKinney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: