[Python-checkins] bpo-33608: Fix PyEval_InitThreads() warning (GH-12346)
Victor Stinner
webhook-mailer at python.org
Fri Mar 15 11:04:24 EDT 2019
https://github.com/python/cpython/commit/e3f4070aee6f2d489416fdcafd51d6b04d661919
commit: e3f4070aee6f2d489416fdcafd51d6b04d661919
branch: master
author: Victor Stinner <vstinner at redhat.com>
committer: GitHub <noreply at github.com>
date: 2019-03-15T16:04:20+01:00
summary:
bpo-33608: Fix PyEval_InitThreads() warning (GH-12346)
The function has no return value.
Fix the following warning on Windows:
python\ceval.c(180): warning C4098: 'PyEval_InitThreads':
'void' function returning a value
files:
M Python/ceval.c
diff --git a/Python/ceval.c b/Python/ceval.c
index 373cde9a17bb..dd8826bf9c83 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -177,7 +177,7 @@ PyEval_InitThreads(void)
_PyRuntime.ceval.pending.lock = PyThread_allocate_lock();
if (_PyRuntime.ceval.pending.lock == NULL) {
- return Py_FatalError("Can't initialize threads for pending calls");
+ Py_FatalError("Can't initialize threads for pending calls");
}
}
More information about the Python-checkins
mailing list