mirror of
https://github.com/python/cpython.git
synced 2025-10-02 21:25:24 +00:00
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
This commit is contained in:
parent
625997622b
commit
e3f4070aee
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ PyEval_InitThreads(void)
|
||||||
|
|
||||||
_PyRuntime.ceval.pending.lock = PyThread_allocate_lock();
|
_PyRuntime.ceval.pending.lock = PyThread_allocate_lock();
|
||||||
if (_PyRuntime.ceval.pending.lock == NULL) {
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue