[Python-checkins] cpython (merge 3.3 -> default): (Merge 3.3) Fix compilation of the _sqlite module if threads are disabled
victor.stinner
python-checkins at python.org
Wed Aug 28 01:45:50 CEST 2013
http://hg.python.org/cpython/rev/c1adbba72e32
changeset: 85422:c1adbba72e32
parent: 85420:ef889c3d5dc6
parent: 85421:65a83a5cf77e
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Aug 28 01:45:39 2013 +0200
summary:
(Merge 3.3) Fix compilation of the _sqlite module if threads are disabled
files:
Modules/_sqlite/connection.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -750,6 +750,9 @@
#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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list