[ 
https://issues.apache.org/jira/browse/ARROW-12088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Antoine Pitrou resolved ARROW-12088.
------------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

Issue resolved by pull request 9812
[https://github.com/apache/arrow/pull/9812]

> [Python][C++] Warning about offsetof in pyarrow.dataset.RecordBatchIterator
> ---------------------------------------------------------------------------
>
>                 Key: ARROW-12088
>                 URL: https://issues.apache.org/jira/browse/ARROW-12088
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Antoine Pitrou
>            Priority: Trivial
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> I just saw the following warning when compiling PyArrow:
> {code}
> /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.
> {code}



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

Reply via email to