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

Skip to content

Commit b84fc0f

Browse files
committed
Fix compilation of the _sqlite module if threads are disabled
1 parent 9594942 commit b84fc0f

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
@@ -715,6 +715,9 @@ void _pysqlite_final_callback(sqlite3_context* context)
715715
#ifdef WITH_THREAD
716716
PyGILState_Release(threadstate);
717717
#endif
718+
/* explicit return to avoid a compilation error if WITH_THREAD
719+
is not defined */
720+
return;
718721
}
719722

720723
static void _pysqlite_drop_unused_statement_references(pysqlite_Connection* self)

0 commit comments

Comments
 (0)