You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/03/26 18:32:00 UTC

[jira] [Updated] (ARROW-12088) [Python][C++] Warning about offsetof in pyarrow.dataset.RecordBatchIterator

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

ASF GitHub Bot updated ARROW-12088:
-----------------------------------
    Labels: pull-request-available  (was: )

> [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
>          Time Spent: 10m
>  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)