@@ -73,7 +73,10 @@ libs_sources = {
7373 ' deps' : _khash_primitive_helper_dep},
7474 ' join' : {' sources' : [' join.pyx' , _khash_primitive_helper],
7575 ' deps' : _khash_primitive_helper_dep},
76- ' lib' : {' sources' : [' lib.pyx' , ' src/parser/tokenizer.c' ]},
76+ ' lib' : {
77+ ' sources' : [' lib.pyx' , ' src/parser/tokenizer.c' ],
78+ ' c_args' : [' -Wno-unused-function' ], # cython issue 6603
79+ },
7780 ' missing' : {' sources' : [' missing.pyx' ]},
7881 ' pandas_datetime' : {' sources' : [' src/vendored/numpy/datetime/np_datetime.c' ,
7982 ' src/vendored/numpy/datetime/np_datetime_strings.c' ,
@@ -92,7 +95,10 @@ libs_sources = {
9295 ' ops' : {' sources' : [' ops.pyx' ]},
9396 ' ops_dispatch' : {' sources' : [' ops_dispatch.pyx' ]},
9497 ' properties' : {' sources' : [' properties.pyx' ]},
95- ' reshape' : {' sources' : [' reshape.pyx' ]},
98+ ' reshape' : {
99+ ' sources' : [' reshape.pyx' ],
100+ ' c_args' : [' -Wno-unused-function' ], # cython issue 6603
101+ },
96102 ' sas' : {' sources' : [' sas.pyx' ]},
97103 ' byteswap' : {' sources' : [' byteswap.pyx' ]},
98104 ' sparse' : {' sources' : [' sparse.pyx' , _sparse_op_helper]},
@@ -117,6 +123,7 @@ foreach ext_name, ext_dict : libs_sources
117123 cython_args : cython_args,
118124 include_directories : [inc_np, inc_pd],
119125 dependencies : ext_dict.get(' deps' , '' ),
126+ c_args : ext_dict.get(' c_args' , []),
120127 subdir : ' pandas/_libs' ,
121128 install : true
122129 )
0 commit comments