Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.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 | 912fd20de0e0 |
| children | b39270c6b8d1 |
line wrap: on
line diff
--- a/Python/sysmodule.c Tue Feb 22 19:24:33 2011 +0000 +++ b/Python/sysmodule.c Tue Feb 22 20:15:44 2011 +0000 @@ -1176,7 +1176,6 @@ PyObject *opts; PyObject *name = NULL, *value = NULL; const wchar_t *name_end; - int r; opts = get_xoptions(); if (opts == NULL) @@ -1194,7 +1193,7 @@ } if (name == NULL || value == NULL) goto error; - r = PyDict_SetItem(opts, name, value); + PyDict_SetItem(opts, name, value); Py_DECREF(name); Py_DECREF(value); return;
