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/blas_lite.c | |
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/blas_lite.c')
-rw-r--r-- | numpy/linalg/lapack_lite/blas_lite.c | 9 |
1 files changed, 9 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 */ |