Skip to content

Commit 356529b

Browse files
committed
Ignore Cython generated unused-function errors
1 parent 84f7de4 commit 356529b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pandas/_libs/meson.build

+9-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ libs_sources = {
8484
'sources': ['join.pyx', _khash_primitive_helper],
8585
'deps': _khash_primitive_helper_dep,
8686
},
87-
'lib': {'sources': ['lib.pyx', 'src/parser/tokenizer.c']},
87+
'lib': {
88+
'sources': ['lib.pyx', 'src/parser/tokenizer.c'],
89+
'c_args': ['-Wno-unused-function'], # cython issue 6603
90+
},
8891
'missing': {'sources': ['missing.pyx']},
8992
'pandas_datetime': {
9093
'sources': [
@@ -117,7 +120,10 @@ libs_sources = {
117120
'ops': {'sources': ['ops.pyx']},
118121
'ops_dispatch': {'sources': ['ops_dispatch.pyx']},
119122
'properties': {'sources': ['properties.pyx']},
120-
'reshape': {'sources': ['reshape.pyx']},
123+
'reshape': {
124+
'sources': ['reshape.pyx'],
125+
'c_args': ['-Wno-unused-function'], # cython issue 6603
126+
},
121127
'sas': {'sources': ['sas.pyx']},
122128
'byteswap': {'sources': ['byteswap.pyx']},
123129
'sparse': {'sources': ['sparse.pyx', _sparse_op_helper]},
@@ -142,6 +148,7 @@ foreach ext_name, ext_dict : libs_sources
142148
cython_args: cython_args,
143149
include_directories: [inc_np, inc_pd],
144150
dependencies: ext_dict.get('deps', ''),
151+
c_args: ext_dict.get('c_args', []),
145152
subdir: 'pandas/_libs',
146153
install: true,
147154
)

0 commit comments

Comments
 (0)