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

[Python][C++] Warning about offsetof in pyarrow.dataset.RecordBatchIterator

    XMLWordPrintableJSON

Details

    Description

      I just saw the following warning when compiling PyArrow:

      /home/antoine/arrow/dev/python/build/temp.linux-x86_64-3.7/_dataset.cpp:46102:151: warning: offset of on non-standard-layout type 'struct __pyx_obj_7pyarrow_8_dataset_RecordBatchIterator' [-Winvalid-offsetof]
        if (__pyx_type_7pyarrow_8_dataset_RecordBatchIterator.tp_weaklistoffset == 0) __pyx_type_7pyarrow_8_dataset_RecordBatchIterator.tp_weaklistoffset = offsetof(struct __pyx_obj_7pyarrow_8_dataset_RecordBatchIterator, __pyx_base.__weakref__);
                                                                                                                                                            ^                                                                 ~~~~~~~~~~
      /usr/lib/llvm-10/lib/clang/10.0.0/include/stddef.h:104:24: note: expanded from macro 'offsetof'
      #define offsetof(t, d) __builtin_offsetof(t, d)
                             ^                     ~
      1 warning generated.
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              2 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