summaryrefslogtreecommitdiff
path: root/numpy/linalg/lapack_lite/zlapack_lite.c
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/linalg/lapack_lite/zlapack_lite.c')
-rw-r--r--numpy/linalg/lapack_lite/zlapack_lite.c9
1 files changed, 9 insertions, 0 deletions
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 */