Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 340f712

Browse files
committed
(Merge 3.3) Fix compilation of the _sqlite module if threads are disabled
2 parents daf4555 + b84fc0f commit 340f712

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Modules/_sqlite/connection.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,9 @@ void _pysqlite_final_callback(sqlite3_context* context)
750750
#ifdef WITH_THREAD
751751
PyGILState_Release(threadstate);
752752
#endif
753+
/* explicit return to avoid a compilation error if WITH_THREAD
754+
is not defined */
755+
return;
753756
}
754757

755758
static void _pysqlite_drop_unused_statement_references(pysqlite_Connection* self)

0 commit comments

Comments
 (0)