@@ -18,13 +18,15 @@ highs_args = highs_proj.get_variable('_args')
18
18
highs_deps = highs_proj.get_variable (' _deps' )
19
19
highslib_srcs = highs_proj.get_variable (' highslib_srcs' )
20
20
highs_incdirs = highs_proj.get_variable (' _incdirs' )
21
+ highs_cpp_suppressions = highs_proj.get_variable (' _highs_cpp_suppressions' )
22
+ highs_c_suppressions = highs_proj.get_variable (' _highs_c_suppressions' )
21
23
22
24
_highslib = static_library (
23
25
' highs' ,
24
26
highslib_srcs,
25
27
dependencies : highs_deps,
26
- cpp_args : highs_args ,
27
- c_args : highs_args ,
28
+ cpp_args : highs_cpp_suppressions ,
29
+ c_args : highs_c_suppressions ,
28
30
include_directories : highs_incdirs,
29
31
# Ensure that if we link a static library into a shared library,
30
32
# private symbols don't get re-exported.
@@ -54,8 +56,6 @@ py3.extension_module(
54
56
' _core' ,
55
57
sources : highspy_cpp + highs_conf_file,
56
58
dependencies : scipy_highspy_dep,
57
- c_args : [Wno_unused_variable, Wno_unused_but_set_variable],
58
- cpp_args : [_cpp_Wno_unused_variable, _cpp_Wno_unused_but_set_variable],
59
59
link_args : version_link_args,
60
60
gnu_symbol_visibility : ' hidden' , # default
61
61
install : true ,
@@ -66,8 +66,6 @@ py3.extension_module(
66
66
' _highs_options' ,
67
67
sources : [highs_conf_file, ' highs_options.cpp' ],
68
68
dependencies : scipy_highspy_dep,
69
- c_args : [Wno_unused_variable, Wno_unused_but_set_variable],
70
- cpp_args : [_cpp_Wno_unused_variable, _cpp_Wno_unused_but_set_variable],
71
69
link_args : version_link_args,
72
70
gnu_symbol_visibility : ' hidden' , # default
73
71
install : true ,
0 commit comments