]> granicus.if.org Git - python/commitdiff
Fix compilation of the _sqlite module if threads are disabled
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 27 Aug 2013 23:44:42 +0000 (01:44 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 27 Aug 2013 23:44:42 +0000 (01:44 +0200)
Modules/_sqlite/connection.c

index 28bd647b3f5e1e73c98e869384e040b0087bbd50..451ea241bd3f317060c93202eeec411bc2be6435 100644 (file)
@@ -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)