diff options
-rw-r--r-- | numpy/distutils/ccompiler_opt.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/numpy/distutils/ccompiler_opt.py b/numpy/distutils/ccompiler_opt.py index 47d07ad4a..1942aa06e 100644 --- a/numpy/distutils/ccompiler_opt.py +++ b/numpy/distutils/ccompiler_opt.py @@ -193,7 +193,12 @@ class _Config: clang = dict( native = '-march=native', opt = "-O3", - werror = '-Werror' + # One of the following flags needs to be applicable for Clang to + # guarantee the sanity of the testing process, however in certain + # cases `-Werror` gets skipped during the availability test due to + # "unused arguments" warnings. + # see https://github.com/numpy/numpy/issues/19624 + werror = '-Werror-implicit-function-declaration -Werror' ), icc = dict( native = '-xHost', |