mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #8914: fix various warnings from the Clang static analyzer v254.
This commit is contained in:
parent
79da6b7075
commit
b94767ff44
36 changed files with 69 additions and 84 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue