Mercurial > cpython-lru_cache-weakref
diff Modules/_sqlite/cursor.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 | 7ba851d1b46e |
| children | c6523d6faef4 |
line wrap: on
line diff
--- a/Modules/_sqlite/cursor.c Tue Feb 22 19:24:33 2011 +0000 +++ b/Modules/_sqlite/cursor.c Tue Feb 22 20:15:44 2011 +0000 @@ -126,11 +126,9 @@ static void pysqlite_cursor_dealloc(pysqlite_Cursor* self) { - int rc; - /* Reset the statement if the user has not closed the cursor */ if (self->statement) { - rc = pysqlite_statement_reset(self->statement); + pysqlite_statement_reset(self->statement); Py_DECREF(self->statement); } @@ -529,7 +527,7 @@ if (self->statement != NULL) { /* There is an active statement */ - rc = pysqlite_statement_reset(self->statement); + pysqlite_statement_reset(self->statement); } operation_cstr = _PyUnicode_AsStringAndSize(operation, &operation_len); @@ -734,7 +732,7 @@ } if (multiple) { - rc = pysqlite_statement_reset(self->statement); + pysqlite_statement_reset(self->statement); } Py_XDECREF(parameters); }
