From: Victor Stinner Date: Tue, 27 Aug 2013 23:44:42 +0000 (+0200) Subject: Fix compilation of the _sqlite module if threads are disabled X-Git-Tag: v3.4.0a2~101^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b84fc0fd9fb77abd63ab81553a080dd2cc56f1b1;p=thirdparty%2FPython%2Fcpython.git Fix compilation of the _sqlite module if threads are disabled --- diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index 28bd647b3f5e..451ea241bd3f 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)