[Python-checkins] cpython (2.7): Issue #28480: Avoid label at end of compound statement --without-threads

martin.panter python-checkins at python.org
Wed Oct 19 23:57:42 EDT 2016


https://hg.python.org/cpython/rev/17629dee23ca
changeset: 104575:17629dee23ca
branch: 2.7
parent: 104572:ddf32a646457
user: Martin Panter <vadmium+py at gmail.com>
date: Thu Oct 20 03:56:48 2016 +0000
summary:
 Issue #28480: Avoid label at end of compound statement --without-threads
files:
 Misc/NEWS | 3 +++
 Modules/_sqlite/connection.c | 1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -60,6 +60,9 @@
 Library
 -------
 
+- Issue #28480: Fix error building _sqlite3 module when multithreading is
+ disabled.
+
 - Issue #24452: Make webbrowser support Chrome on Mac OS X.
 
 - Issue #26293: Fixed writing ZIP files that starts not from the start of the
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -790,6 +790,7 @@
 }
 
 error:
+ ; /* necessary for --without-threads flag */
 #ifdef WITH_THREAD
 PyGILState_Release(threadstate);
 #endif
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /