summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Berg <sebastianb@nvidia.com>2023-04-24 17:33:10 +0200
committerGitHub <noreply@github.com>2023-04-24 17:33:10 +0200
commit0be8235251a45d48ba69d540fe95790a5a148c85 (patch)
tree635f66d362993bb4de1a08157d5ebd85ccf81639
parent99f08e3951dccf547030b410ed5d0c02dcf6131a (diff)
parentbcc9c51c167a7bfaa8475b146a5bebc03213687f (diff)
downloadnumpy-0be8235251a45d48ba69d540fe95790a5a148c85.tar.gz
Merge pull request #23654 from seiko2plus/issue_23538
BUG: Avoid uses -Werror during tests default C/C++ standards
-rwxr-xr-xsetup.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index d06677ae1..fc16971c9 100755
--- a/setup.py
+++ b/setup.py
@@ -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 {