From b84fc0fd9fb77abd63ab81553a080dd2cc56f1b1 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 28 Aug 2013 01:44:42 +0200 Subject: Fix compilation of the _sqlite module if threads are disabled --- Modules/_sqlite/connection.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index 28bd647..451ea24 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) -- cgit v0.12