@@ -375,6 +375,8 @@ def srcpath(name=None, suffix='.pyx', subdir='src'):
375
375
def pxd (name ):
376
376
return os .path .abspath (pjoin ('pandas' , name + '.pxd' ))
377
377
378
+ # args to ignore warnings
379
+ extra_compile_args = ['-Wno-unused-function' ]
378
380
379
381
lib_depends = lib_depends + ['pandas/src/numpy_helper.h' ,
380
382
'pandas/src/parse_helper.h' ]
@@ -440,7 +442,7 @@ def pxd(name):
440
442
sources = sources ,
441
443
depends = data .get ('depends' , []),
442
444
include_dirs = include ,
443
- extra_compile_args = [ '-w' ] )
445
+ extra_compile_args = extra_compile_args )
444
446
445
447
extensions .append (obj )
446
448
@@ -449,15 +451,15 @@ def pxd(name):
449
451
sources = [srcpath ('sparse' , suffix = suffix )],
450
452
include_dirs = [],
451
453
libraries = libraries ,
452
- extra_compile_args = [ '-w' ] )
454
+ extra_compile_args = extra_compile_args )
453
455
454
456
extensions .extend ([sparse_ext ])
455
457
456
458
testing_ext = Extension ('pandas._testing' ,
457
459
sources = [srcpath ('testing' , suffix = suffix )],
458
460
include_dirs = [],
459
461
libraries = libraries ,
460
- extra_compile_args = [ '-w' ] )
462
+ extra_compile_args = extra_compile_args )
461
463
462
464
extensions .extend ([testing_ext ])
463
465
@@ -478,7 +480,7 @@ def pxd(name):
478
480
language = 'c++' ,
479
481
include_dirs = ['pandas/src/msgpack' ] + common_include ,
480
482
define_macros = macros ,
481
- extra_compile_args = [ '-w' ] )
483
+ extra_compile_args = extra_compile_args )
482
484
unpacker_ext = Extension ('pandas.msgpack._unpacker' ,
483
485
depends = ['pandas/src/msgpack/unpack.h' ,
484
486
'pandas/src/msgpack/unpack_define.h' ,
@@ -489,7 +491,7 @@ def pxd(name):
489
491
language = 'c++' ,
490
492
include_dirs = ['pandas/src/msgpack' ] + common_include ,
491
493
define_macros = macros ,
492
- extra_compile_args = [ '-w' ] )
494
+ extra_compile_args = extra_compile_args )
493
495
extensions .append (packer_ext )
494
496
extensions .append (unpacker_ext )
495
497
@@ -513,7 +515,7 @@ def pxd(name):
513
515
include_dirs = ['pandas/src/ujson/python' ,
514
516
'pandas/src/ujson/lib' ,
515
517
'pandas/src/datetime' ] + common_include ,
516
- extra_compile_args = ['-D_GNU_SOURCE' , '-w' ] )
518
+ extra_compile_args = ['-D_GNU_SOURCE' ] + extra_compile_args )
517
519
518
520
519
521
extensions .append (ujson_ext )
0 commit comments