summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-08-27 23:44:42 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-08-27 23:44:42 (GMT)
commitb84fc0fd9fb77abd63ab81553a080dd2cc56f1b1 (patch)
tree87456d1f4d7746d26d6309ef7a5f9696cd6eea59 /Modules/_sqlite
parent9594942716a8f9c557b85d31751753d89cd7cebf (diff)
downloadcpython-b84fc0fd9fb77abd63ab81553a080dd2cc56f1b1.zip
cpython-b84fc0fd9fb77abd63ab81553a080dd2cc56f1b1.tar.gz
cpython-b84fc0fd9fb77abd63ab81553a080dd2cc56f1b1.tar.bz2
Fix compilation of the _sqlite module if threads are disabled
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r--Modules/_sqlite/connection.c3
1 files changed, 3 insertions, 0 deletions
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)