diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2021-06-08 12:16:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-08 12:16:24 (GMT) |
commit | 781dc76577b1810666f4ce04d8fc20d8b43fb374 (patch) | |
tree | 3807c4941c94da455d982fd562058e0be01b68a0 | |
parent | d334c73b56756e90c33ce06e3a6ec23271aa099d (diff) | |
download | cpython-781dc76577b1810666f4ce04d8fc20d8b43fb374.zip cpython-781dc76577b1810666f4ce04d8fc20d8b43fb374.tar.gz cpython-781dc76577b1810666f4ce04d8fc20d8b43fb374.tar.bz2 |
Fix compiler errors for unused variables (GH-26601)
-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; |