Skip to content

Commit d7f63c0

Browse files
suppressed unsed-functions warning on Linux
1 parent a63dcb7 commit d7f63c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mkl_random/setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,16 @@ def configuration(parent_package='',top_path=None):
7070
pdir = 'mkl_random'
7171
wdir = join(pdir, 'src')
7272

73+
eca = [Q + 'std=c++11']
74+
if sys.platform == "linux":
75+
eca.extend(["-Wno-unused-but-set-variable", "-Wno-unused-function"])
76+
7377
config.add_library(
7478
'mkl_dists',
7579
sources=join(wdir, 'mkl_distributions.cpp'),
7680
libraries=libs,
7781
include_dirs=[wdir,pdir,get_numpy_include(),get_python_include()],
78-
extra_compiler_args=[Q + 'std=c++11'],
82+
extra_compiler_args=eca,
7983
depends=[join(wdir, '*.h'),],
8084
language='c++',
8185
)

0 commit comments

Comments
 (0)