diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index 28bd647b3f5..451ea241bd3 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -715,6 +715,9 @@ error: #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)