Unverified Kaydet (Commit) e3f4070a authored tarafından Victor Stinner's avatar Victor Stinner Kaydeden (comit) GitHub

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
üst 62599762
......@@ -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");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment