summaryrefslogtreecommitdiff
path: root/Modules/_ctypes/cfield.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2011-02-22 20:15:44 +0000
committerBrett Cannon <bcannon@gmail.com>2011-02-22 20:15:44 +0000
commitffbf24bf0cc297d080d6d68bc809a9c156c49123 (patch)
tree784a982964a18755673f3d95a8d98eadb333671e /Modules/_ctypes/cfield.c
parentd563a72e39fd9aa04119460ee7981b9f2287a19d (diff)
downloadcpython-ffbf24bf0cc297d080d6d68bc809a9c156c49123.tar.gz
Issue #8914: fix various warnings from the Clang static analyzer v254.
Diffstat (limited to 'Modules/_ctypes/cfield.c')
-rw-r--r--Modules/_ctypes/cfield.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_ctypes/cfield.c b/Modules/_ctypes/cfield.c
index ccaa3c9d70..0aa9f0b5bc 100644
--- a/Modules/_ctypes/cfield.c
+++ b/Modules/_ctypes/cfield.c
@@ -52,7 +52,7 @@ PyCField_FromDesc(PyObject *desc, Py_ssize_t index,
{
CFieldObject *self;
PyObject *proto;
- Py_ssize_t size, align, length;
+ Py_ssize_t size, align;
SETFUNC setfunc = NULL;
GETFUNC getfunc = NULL;
StgDictObject *dict;
@@ -106,7 +106,6 @@ PyCField_FromDesc(PyObject *desc, Py_ssize_t index,
}
size = dict->size;
- length = dict->length;
proto = desc;
/* Field descriptors for 'c_char * n' are be scpecial cased to