diff options
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 */ |