diff options
-rw-r--r-- | Modules/_sqlite/connection.c | 2 | ||||
-rw-r--r-- | Python/compile.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index 4ec74dd..9199c34 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -276,7 +276,7 @@ connection_close(pysqlite_Connection *self) { if (self->db) { int rc = sqlite3_close_v2(self->db); - assert(rc == SQLITE_OK); + assert(rc == SQLITE_OK), (void)rc; self->db = NULL; } } diff --git a/Python/compile.c b/Python/compile.c index 056dacf..c97938a 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -7192,6 +7192,7 @@ compute_localsplus_info(struct compiler *c, PyObject *names, _PyLocalsPlusKinds kinds) { int nlocalsplus = (int)PyTuple_GET_SIZE(names); + (void)nlocalsplus; // Avoid compiler errors for unused variable PyObject *k, *v; Py_ssize_t pos = 0; |