summaryrefslogtreecommitdiff
path: root/numpy/numarray/_capi.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-12-02 05:07:35 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-12-02 05:07:35 +0000
commit3a93adce6609cd3499d85c5f2b9dc38d3d1255c7 (patch)
treec965535dae00b60b48306a6d69b8ab9becac113d /numpy/numarray/_capi.c
parent921fa088183b86dbaeb35a9c9af17980e7708a54 (diff)
downloadnumpy-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/numarray/_capi.c')
-rw-r--r--numpy/numarray/_capi.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/numpy/numarray/_capi.c b/numpy/numarray/_capi.c
index ff3df9416..ff2d86f19 100644
--- a/numpy/numarray/_capi.c
+++ b/numpy/numarray/_capi.c
@@ -123,12 +123,11 @@ getReadBufferDataPtr(PyObject *buffobj, void **buff)
static int
getBufferSize(PyObject *buffobj)
{
- Py_ssize_t segcount, size=0;
+ Py_ssize_t size=0;
PyObject *buff2;
if ((buff2 = getBuffer(buffobj)))
{
- segcount = buff2->ob_type->tp_as_buffer->bf_getsegcount(buff2,
- &size);
+ (void) buff2->ob_type->tp_as_buffer->bf_getsegcount(buff2, &size);
Py_DECREF(buff2);
}
else
@@ -621,12 +620,11 @@ callStrideConvCFunc(PyObject *self, PyObject *args) {
PyObject *inbuffObj, *outbuffObj, *shapeObj;
PyObject *inbstridesObj, *outbstridesObj;
CfuncObject *me = (CfuncObject *) self;
- int nshape, ninbstrides, noutbstrides, nargs;
+ int nshape, ninbstrides, noutbstrides;
maybelong shape[MAXDIM], inbstrides[MAXDIM],
outbstrides[MAXDIM], *outbstrides1 = outbstrides;
long inboffset, outboffset, nbytes=0;
- nargs = PyObject_Length(args);
if (!PyArg_ParseTuple(args, "OOlOOlO|l",
&shapeObj, &inbuffObj, &inboffset, &inbstridesObj,
&outbuffObj, &outboffset, &outbstridesObj,