@@ -439,22 +439,25 @@ def pxd(name):
439
439
obj = Extension ('pandas.%s' % name ,
440
440
sources = sources ,
441
441
depends = data .get ('depends' , []),
442
- include_dirs = include )
442
+ include_dirs = include ,
443
+ extra_compile_args = ['-w' ])
443
444
444
445
extensions .append (obj )
445
446
446
447
447
448
sparse_ext = Extension ('pandas._sparse' ,
448
449
sources = [srcpath ('sparse' , suffix = suffix )],
449
450
include_dirs = [],
450
- libraries = libraries )
451
+ libraries = libraries ,
452
+ extra_compile_args = ['-w' ])
451
453
452
454
extensions .extend ([sparse_ext ])
453
455
454
456
testing_ext = Extension ('pandas._testing' ,
455
457
sources = [srcpath ('testing' , suffix = suffix )],
456
458
include_dirs = [],
457
- libraries = libraries )
459
+ libraries = libraries ,
460
+ extra_compile_args = ['-w' ])
458
461
459
462
extensions .extend ([testing_ext ])
460
463
@@ -474,7 +477,8 @@ def pxd(name):
474
477
subdir = 'msgpack' )],
475
478
language = 'c++' ,
476
479
include_dirs = ['pandas/src/msgpack' ] + common_include ,
477
- define_macros = macros )
480
+ define_macros = macros ,
481
+ extra_compile_args = ['-w' ])
478
482
unpacker_ext = Extension ('pandas.msgpack._unpacker' ,
479
483
depends = ['pandas/src/msgpack/unpack.h' ,
480
484
'pandas/src/msgpack/unpack_define.h' ,
@@ -484,7 +488,8 @@ def pxd(name):
484
488
subdir = 'msgpack' )],
485
489
language = 'c++' ,
486
490
include_dirs = ['pandas/src/msgpack' ] + common_include ,
487
- define_macros = macros )
491
+ define_macros = macros ,
492
+ extra_compile_args = ['-w' ])
488
493
extensions .append (packer_ext )
489
494
extensions .append (unpacker_ext )
490
495
@@ -508,7 +513,7 @@ def pxd(name):
508
513
include_dirs = ['pandas/src/ujson/python' ,
509
514
'pandas/src/ujson/lib' ,
510
515
'pandas/src/datetime' ] + common_include ,
511
- extra_compile_args = ['-D_GNU_SOURCE' ])
516
+ extra_compile_args = ['-D_GNU_SOURCE' , '-w' ])
512
517
513
518
514
519
extensions .append (ujson_ext )
0 commit comments