From 4486758c485ce9e3328b8fd9dd04d28952ac29a7 Mon Sep 17 00:00:00 2001 From: ruang Date: Tue, 15 Oct 2024 19:00:37 +0800 Subject: [PATCH] Add Py_UNUSED --- Modules/_sqlite/connection.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index fc03e4a085c179..e59c8cf7f6e2df 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -1711,7 +1711,7 @@ int pysqlite_check_thread(pysqlite_Connection* self) return 1; } -static PyObject* pysqlite_connection_get_isolation_level(pysqlite_Connection* self, void* unused) +static PyObject* pysqlite_connection_get_isolation_level(pysqlite_Connection* self, void* Py_UNUSED(args)) { if (!pysqlite_check_connection(self)) { return NULL; @@ -1722,7 +1722,7 @@ static PyObject* pysqlite_connection_get_isolation_level(pysqlite_Connection* se Py_RETURN_NONE; } -static PyObject* pysqlite_connection_get_total_changes(pysqlite_Connection* self, void* unused) +static PyObject* pysqlite_connection_get_total_changes(pysqlite_Connection* self, void* Py_UNUSED(args)) { if (!pysqlite_check_connection(self)) { return NULL; @@ -1730,7 +1730,7 @@ static PyObject* pysqlite_connection_get_total_changes(pysqlite_Connection* self return PyLong_FromLong(sqlite3_total_changes(self->db)); } -static PyObject* pysqlite_connection_get_in_transaction(pysqlite_Connection* self, void* unused) +static PyObject* pysqlite_connection_get_in_transaction(pysqlite_Connection* self, void* Py_UNUSED(args)) { if (!pysqlite_check_connection(self)) { return NULL;