]> granicus.if.org Git - python/commitdiff
Issue #28480: Avoid label at end of compound statement --without-threads
authorMartin Panter <vadmium+py@gmail.com>
Thu, 20 Oct 2016 03:56:48 +0000 (03:56 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Thu, 20 Oct 2016 03:56:48 +0000 (03:56 +0000)
Misc/NEWS
Modules/_sqlite/connection.c

index ba5ad65970f91436174b27d6bb83550cd6eb84bb..6cf59a31bc1a09dd8c44d38c7cf236beac7c5f2c 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -60,6 +60,9 @@ Core and Builtins
 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
index e62e4d912131e73d931db8062485a17850b7b415..237d6e419a975c737a446d242fec3f4d871d6777 100644 (file)
@@ -790,6 +790,7 @@ void _pysqlite_final_callback(sqlite3_context* context)
     }
 
 error:
+    ;  /* necessary for --without-threads flag */
 #ifdef WITH_THREAD
     PyGILState_Release(threadstate);
 #endif