mirror of
https://github.com/python/cpython
synced 2024-10-05 09:19:59 +00:00
Fix compilation of the _sqlite module if threads are disabled
This commit is contained in:
parent
9594942716
commit
b84fc0fd9f
|
@ -715,6 +715,9 @@ void _pysqlite_final_callback(sqlite3_context* context)
|
|||
#ifdef WITH_THREAD
|
||||
PyGILState_Release(threadstate);
|
||||
#endif
|
||||
/* explicit return to avoid a compilation error if WITH_THREAD
|
||||
is not defined */
|
||||
return;
|
||||
}
|
||||
|
||||
static void _pysqlite_drop_unused_statement_references(pysqlite_Connection* self)
|
||||
|
|
Loading…
Reference in a new issue