summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2019-04-09 11:31:43 +0200
committerRalf Gommers <ralf.gommers@gmail.com>2019-04-09 11:43:46 +0200
commitcc10cddde24091a396c34bdcee5da081fee40200 (patch)
tree4fea1f178b27f5cf42da45a180d4fb013915235a /numpy/core
parent167a31ba45d5ac72dea066962f59c0b31940d0a3 (diff)
downloadnumpy-cc10cddde24091a396c34bdcee5da081fee40200.tar.gz
MAINT: fix unused variable warning in npy_math_complex.c.src
Warnings: ``` x86_64-conda_cos6-linux-gnu-cc: numpy/core/src/npymath/npy_math.c numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_casinhf': numpy/core/src/npymath/npy_math_complex.c.src:1445:21: warning: unused variable 'pio2_hi' [-Wunused-variable] const @type@ pio2_hi = NPY_PI_2@c@; ^~~~~~~ numpy/core/src/npymath/npy_math_complex.c.src:1434:30: warning: unused variable 'pio2_lo' [-Wunused-variable] const volatile npy_float pio2_lo = 7.5497899549e-9f; ^~~~~~~ numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_casinh': numpy/core/src/npymath/npy_math_complex.c.src:1445:22: warning: unused variable 'pio2_hi' [-Wunused-variable] const @type@ pio2_hi = NPY_PI_2@c@; ^~~~~~~ numpy/core/src/npymath/npy_math_complex.c.src:1438:31: warning: unused variable 'pio2_lo' [-Wunused-variable] const volatile npy_double pio2_lo = 6.1232339957367659e-17; ^~~~~~~ numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_casinhl': numpy/core/src/npymath/npy_math_complex.c.src:1445:26: warning: unused variable 'pio2_hi' [-Wunused-variable] const @type@ pio2_hi = NPY_PI_2@c@; ^~~~~~~ numpy/core/src/npymath/npy_math_complex.c.src:1442:35: warning: unused variable 'pio2_lo' [-Wunused-variable] const volatile npy_longdouble pio2_lo = 2.710505431213761085e-20l; ^~~~~~~ ```
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/src/npymath/npy_math_complex.c.src5
1 files changed, 0 insertions, 5 deletions
diff --git a/numpy/core/src/npymath/npy_math_complex.c.src b/numpy/core/src/npymath/npy_math_complex.c.src
index cf427dad8..7aa07f16d 100644
--- a/numpy/core/src/npymath/npy_math_complex.c.src
+++ b/numpy/core/src/npymath/npy_math_complex.c.src
@@ -1430,19 +1430,14 @@ npy_casinh@c@(@ctype@ z)
#if @precision@ == 1
/* this is sqrt(6*EPS) */
const npy_float SQRT_6_EPSILON = 8.4572793338e-4f;
- /* chosen such that pio2_hi + pio2_lo == pio2_hi but causes FE_INEXACT. */
- const volatile npy_float pio2_lo = 7.5497899549e-9f;
#endif
#if @precision@ == 2
const npy_double SQRT_6_EPSILON = 3.65002414998885671e-08;
- const volatile npy_double pio2_lo = 6.1232339957367659e-17;
#endif
#if @precision@ == 3
const npy_longdouble SQRT_6_EPSILON = 8.0654900873493277169e-10l;
- const volatile npy_longdouble pio2_lo = 2.710505431213761085e-20l;
#endif
const @type@ RECIP_EPSILON = 1.0@c@ / @TEPS@;
- const @type@ pio2_hi = NPY_PI_2@c@;
@type@ x, y, ax, ay, wx, wy, rx, ry, B, sqrt_A2my2, new_y;
npy_int B_is_usable;