You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/03/25 16:40:00 UTC
[jira] [Created] (ARROW-12088) [Python][C++] Warning about offsetof
in pyarrow.dataset.RecordBatchIterator
Antoine Pitrou created ARROW-12088:
--------------------------------------
Summary: [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
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)