summaryrefslogtreecommitdiff
path: root/numpy/lib/src
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2010-04-25 04:31:03 +0000
committerCharles Harris <charlesr.harris@gmail.com>2010-04-25 04:31:03 +0000
commite8699dd5cd3e018250393d989aa1146d89ad9b72 (patch)
treeaac80fa242cd91b386c1d59b09171396e6add01f /numpy/lib/src
parent42c74d784350830cf14bbea0419924d4d88559f7 (diff)
downloadnumpy-e8699dd5cd3e018250393d989aa1146d89ad9b72.tar.gz
ENH: Remove some unused variable warnings.
Diffstat (limited to 'numpy/lib/src')
-rw-r--r--numpy/lib/src/_compiled_base.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/numpy/lib/src/_compiled_base.c b/numpy/lib/src/_compiled_base.c
index 3ded93e0b..77a94752d 100644
--- a/numpy/lib/src/_compiled_base.c
+++ b/numpy/lib/src/_compiled_base.c
@@ -559,7 +559,7 @@ static PyObject *
arr_add_docstring(PyObject *NPY_UNUSED(dummy), PyObject *args)
{
PyObject *obj;
- PyObject *str, *tmp;
+ PyObject *str;
char *docstr;
static char *msg = "already has a docstring";
@@ -573,8 +573,7 @@ arr_add_docstring(PyObject *NPY_UNUSED(dummy), PyObject *args)
return NULL;
}
- tmp = PyUnicode_AsUTF8String(str);
- docstr = PyBytes_AS_STRING(tmp);
+ docstr = PyBytes_AS_STRING(PyUnicode_AsUTF8String(str));
#else
if (!PyArg_ParseTuple(args, "OO!", &obj, &PyString_Type, &str)) {
return NULL;
@@ -956,7 +955,7 @@ PyMODINIT_FUNC
init_compiled_base(void)
#endif
{
- PyObject *m, *d, *s;
+ PyObject *m, *d;
#if defined(NPY_PY3K)
m = PyModule_Create(&moduledef);