diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-08-28 01:45:39 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-08-28 01:45:39 +0200 |
commit | cd4462952d6252742ef0a084c90a8ceec6acfc6a (patch) | |
tree | 464749f9f2dda3c76c143ec1be4746218c835abb /Modules | |
parent | e5883d6d95989121670eca012dd5bde1721747e7 (diff) | |
parent | eba3cff07588890d45a1d4a49f4a4fc193608d45 (diff) | |
download | cpython-cd4462952d6252742ef0a084c90a8ceec6acfc6a.tar.gz |
(Merge 3.3) Fix compilation of the _sqlite module if threads are disabled
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_sqlite/connection.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index 531516c277..2b12f8b497 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -750,6 +750,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) |