diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-02-21 20:43:11 +0000 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-02-21 21:52:24 +0000 |
commit | 77f43f05df36e8137d8ccd0f3a1c35b48255107d (patch) | |
tree | a33d5861e75f4dd655f56f2dd8055f2bd583d170 /numpy/linalg/lapack_lite | |
parent | 6b9a02a84c1ad3f69621dc7ae521098e7d9ef21a (diff) | |
download | numpy-77f43f05df36e8137d8ccd0f3a1c35b48255107d.tar.gz |
MAINT: Squelch parenthesis warnings from GCC
These were previously avoided by patching f2c, but this was more work for
little gain, and the patch was not committed.
Diffstat (limited to 'numpy/linalg/lapack_lite')
-rw-r--r-- | numpy/linalg/lapack_lite/blas_lite.c | 9 | ||||
-rw-r--r-- | numpy/linalg/lapack_lite/dlapack_lite.c | 9 | ||||
-rwxr-xr-x | numpy/linalg/lapack_lite/make_lite.py | 9 | ||||
-rw-r--r-- | numpy/linalg/lapack_lite/zlapack_lite.c | 9 |
4 files changed, 36 insertions, 0 deletions
diff --git a/numpy/linalg/lapack_lite/blas_lite.c b/numpy/linalg/lapack_lite/blas_lite.c index 0991b2d21..6ef3bf0a3 100644 --- a/numpy/linalg/lapack_lite/blas_lite.c +++ b/numpy/linalg/lapack_lite/blas_lite.c @@ -16,6 +16,15 @@ extern doublereal dlamch_(char *); extern doublereal dlapy2_(doublereal *x, doublereal *y); +/* +f2c knows the exact rules for precedence, and so omits parentheses where not +strictly necessary. Since this is generated code, we don't really care if +it's readable, and we know what is written is correct. So don't warn about +them. +*/ +#if defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wparentheses" +#endif /* Table of constant values */ diff --git a/numpy/linalg/lapack_lite/dlapack_lite.c b/numpy/linalg/lapack_lite/dlapack_lite.c index be6e0c6d4..116aa6ceb 100644 --- a/numpy/linalg/lapack_lite/dlapack_lite.c +++ b/numpy/linalg/lapack_lite/dlapack_lite.c @@ -16,6 +16,15 @@ extern doublereal dlamch_(char *); extern doublereal dlapy2_(doublereal *x, doublereal *y); +/* +f2c knows the exact rules for precedence, and so omits parentheses where not +strictly necessary. Since this is generated code, we don't really care if +it's readable, and we know what is written is correct. So don't warn about +them. +*/ +#if defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wparentheses" +#endif /* Table of constant values */ diff --git a/numpy/linalg/lapack_lite/make_lite.py b/numpy/linalg/lapack_lite/make_lite.py index 2370e0004..041e34692 100755 --- a/numpy/linalg/lapack_lite/make_lite.py +++ b/numpy/linalg/lapack_lite/make_lite.py @@ -35,6 +35,15 @@ extern doublereal dlamch_(char *); extern doublereal dlapy2_(doublereal *x, doublereal *y); +/* +f2c knows the exact rules for precedence, and so omits parentheses where not +strictly necessary. Since this is generated code, we don't really care if +it's readable, and we know what is written is correct. So don't warn about +them. +*/ +#if defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wparentheses" +#endif ''' class FortranRoutine(object): diff --git a/numpy/linalg/lapack_lite/zlapack_lite.c b/numpy/linalg/lapack_lite/zlapack_lite.c index 7dcd92cc5..143b7254f 100644 --- a/numpy/linalg/lapack_lite/zlapack_lite.c +++ b/numpy/linalg/lapack_lite/zlapack_lite.c @@ -16,6 +16,15 @@ extern doublereal dlamch_(char *); extern doublereal dlapy2_(doublereal *x, doublereal *y); +/* +f2c knows the exact rules for precedence, and so omits parentheses where not +strictly necessary. Since this is generated code, we don't really care if +it's readable, and we know what is written is correct. So don't warn about +them. +*/ +#if defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wparentheses" +#endif /* Table of constant values */ |