mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix compiler errors for unused variables (GH-26601)
This commit is contained in:
parent
d334c73b56
commit
781dc76577
2 changed files with 2 additions and 1 deletions
|
@ -276,7 +276,7 @@ connection_close(pysqlite_Connection *self)
|
||||||
{
|
{
|
||||||
if (self->db) {
|
if (self->db) {
|
||||||
int rc = sqlite3_close_v2(self->db);
|
int rc = sqlite3_close_v2(self->db);
|
||||||
assert(rc == SQLITE_OK);
|
assert(rc == SQLITE_OK), (void)rc;
|
||||||
self->db = NULL;
|
self->db = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7192,6 +7192,7 @@ compute_localsplus_info(struct compiler *c,
|
||||||
PyObject *names, _PyLocalsPlusKinds kinds)
|
PyObject *names, _PyLocalsPlusKinds kinds)
|
||||||
{
|
{
|
||||||
int nlocalsplus = (int)PyTuple_GET_SIZE(names);
|
int nlocalsplus = (int)PyTuple_GET_SIZE(names);
|
||||||
|
(void)nlocalsplus; // Avoid compiler errors for unused variable
|
||||||
|
|
||||||
PyObject *k, *v;
|
PyObject *k, *v;
|
||||||
Py_ssize_t pos = 0;
|
Py_ssize_t pos = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue