diff options
| author | Sebastian Berg <sebastianb@nvidia.com> | 2023-04-24 17:33:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-24 17:33:10 +0200 |
| commit | 0be8235251a45d48ba69d540fe95790a5a148c85 (patch) | |
| tree | 635f66d362993bb4de1a08157d5ebd85ccf81639 | |
| parent | 99f08e3951dccf547030b410ed5d0c02dcf6131a (diff) | |
| parent | bcc9c51c167a7bfaa8475b146a5bebc03213687f (diff) | |
| download | numpy-0be8235251a45d48ba69d540fe95790a5a148c85.tar.gz | |
Merge pull request #23654 from seiko2plus/issue_23538
BUG: Avoid uses -Werror during tests default C/C++ standards
| -rwxr-xr-x | setup.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -193,9 +193,6 @@ def get_build_overrides(): from numpy._utils import _pep440 def try_compile(compiler, file, flags = [], verbose=False): - # To bypass trapping warnings by Travis CI - if getattr(compiler, 'compiler_type', '') == 'unix': - flags = ['-Werror'] + flags bk_ver = getattr(compiler, 'verbose', False) compiler.verbose = verbose try: @@ -270,7 +267,7 @@ def get_build_overrides(): constexpr bool test_fold = (... && std::is_const_v<T>); int main() { - if constexpr (test_fold<int, const int>) { + if (test_fold<int, const int>) { return 0; } else { |
