Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 68102:e2f96bd29252
Issue #8914: fix various warnings from the Clang static analyzer v254.
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Tue, 22 Feb 2011 20:15:44 +0000 |
| parents | ef28aad3bbae |
| children | 7ab569b18c98 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Tue Feb 22 19:24:33 2011 +0000 +++ b/Objects/unicodeobject.c Tue Feb 22 20:15:44 2011 +0000 @@ -5418,7 +5418,6 @@ if (!result) return NULL; for (i = 0; i < 256; i++) { - key = value = NULL; key = PyLong_FromLong(decode[i]); value = PyLong_FromLong(i); if (!key || !value) @@ -6935,7 +6934,7 @@ } } else { - Py_ssize_t n, i, j, e; + Py_ssize_t n, i, j; Py_ssize_t product, new_size, delta; Py_UNICODE *p; @@ -6967,7 +6966,6 @@ return NULL; i = 0; p = u->str; - e = self->length - str1->length; if (str1->length > 0) { while (n-- > 0) { /* look for next match */
