aboutsummaryrefslogtreecommitdiff
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
commitb94767ff44edf5d461d7cb1c8eb5160f83886358 (patch)
treeb43b482e765b0383b3326779f6815e72b2bacccb /Objects/floatobject.c
parentIn FTP.close() method, make sure to also close the socket object, not only th... (diff)
downloadcpython-b94767ff44edf5d461d7cb1c8eb5160f83886358.tar.gz
cpython-b94767ff44edf5d461d7cb1c8eb5160f83886358.tar.bz2
cpython-b94767ff44edf5d461d7cb1c8eb5160f83886358.zip
Issue #8914: fix various warnings from the Clang static analyzer v254.
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r--Objects/floatobject.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index 09c0e961ba5..6d1745e2c38 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -197,7 +197,6 @@ PyFloat_FromString(PyObject *v)
Py_DECREF(s_buffer);
return NULL;
}
- last = s + len;
}
else if (PyObject_AsCharBuffer(v, &s, &len)) {
PyErr_SetString(PyExc_TypeError,
@@ -2246,7 +2245,7 @@ _PyFloat_Pack8(double x, unsigned char *p, int le)
/* Eighth byte */
*p = flo & 0xFF;
- p += incr;
+ /* p += incr; */
/* Done */
return 0;