Skip to content

Commit

Permalink
Fix compiler errors for unused variables (GH-26601)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal authored Jun 8, 2021
1 parent d334c73 commit 781dc76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_sqlite/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
1 change: 1 addition & 0 deletions Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 781dc76

Please sign in to comment.