diff options
| author | Travis Oliphant <oliphant@enthought.com> | 2006-12-02 05:07:35 +0000 |
|---|---|---|
| committer | Travis Oliphant <oliphant@enthought.com> | 2006-12-02 05:07:35 +0000 |
| commit | 3a93adce6609cd3499d85c5f2b9dc38d3d1255c7 (patch) | |
| tree | c965535dae00b60b48306a6d69b8ab9becac113d /numpy/core/src/umathmodule.c.src | |
| parent | 921fa088183b86dbaeb35a9c9af17980e7708a54 (diff) | |
| download | numpy-3a93adce6609cd3499d85c5f2b9dc38d3d1255c7.tar.gz | |
Fix warnings found by Intel compiler due to unused variables that were set. Make ones work for compound types.
Diffstat (limited to 'numpy/core/src/umathmodule.c.src')
| -rw-r--r-- | numpy/core/src/umathmodule.c.src | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/numpy/core/src/umathmodule.c.src b/numpy/core/src/umathmodule.c.src index ba1521aeb..03e3a34d2 100644 --- a/numpy/core/src/umathmodule.c.src +++ b/numpy/core/src/umathmodule.c.src @@ -1279,15 +1279,10 @@ static void { intp i, is1 = steps[0], os = steps[1], n = dimensions[0]; char *i1 = args[0], *op = args[1]; - c@typ@ *x, *y; - @typ@ xr, xi, xmag2; + c@typ@ *y; for (i = 0; i < n; i++, i1 += is1, op += os) { - x = (c@typ@ *)i1; y = (c@typ@ *)op; - xr = x->real; - xi = x->imag; - xmag2 = xr*xr + xi*xi; y->real = 1.0; y->imag = 0.0; } |
